function poll_teaser
Creates a simple teaser that lists all the choices.
This is primarily used for RSS.
1 call to poll_teaser()
- poll_node_form_submit in modules/
poll/ poll.module - Form submit handler for node_form().
File
-
modules/
poll/ poll.module, line 688
Code
function poll_teaser($node) {
$teaser = NULL;
if (is_array($node->choice)) {
foreach ($node->choice as $choice) {
if ($choice['chtext'] != '') {
$teaser .= '* ' . check_plain($choice['chtext']) . "\n";
}
}
}
return $teaser;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.