theme_multipage_form_example
developer/examples/multipage_form_example.module, строка 348
- Версии
- 5 – 6
theme_multipage_form_example($node)
A custom theme function.
By using this function to format our node-specific information, themes can override this presentation if they wish. We also wrap the default presentation in a CSS class that is prefixed by the module name. This way, style sheets can modify the output without requiring theme code.
Код
<?php
function theme_multipage_form_example($node) {
$person_display = t('Your favorite person is %person, and they %like gummi bears. <br \>', array('%person' => check_plain($node->fav_person), '%like' => ($node->fav_gummi ? t('like') : t('don\'t like'))));
$color_number_display = t('Your favorite color is %color, and your favorite number is %number. <br \>', array('%color' => check_plain($node->fav_color), '%number' => check_plain($node->fav_number)));
$tv_movie_display = t('Your favorite movie is %movie, and you watch your favorite tv show %watch.', array('%movie' => check_plain($node->fav_movie), '%watch' => check_plain($node->fav_tv)));
$output = '<div class="multipage_form_example">';
$output .= $person_display . $color_number_display . $tv_movie_display;
$output .= '</div>';
return $output;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии