function theming_example_with_template in Examples for Developers 6
This function demonstrates using a template and preprocess function.
2 string references to 'theming_example_with_template'
- theming_example_menu in theming_example/
theming_example.module - Implements hook_menu().
- theming_example_theme in theming_example/
theming_example.module - Implements hook_theme().
File
- theming_example/
theming_example.module, line 88 - Explains how a module declares theme functions, preprocess functions, and templates.
Code
function theming_example_with_template() {
$content = t('This will get passed to a template, and optionally through a preprocess function.');
$content = theme('theming_example_with_template', $content);
return $content;
}