function theme_recipe_description_summary in Recipe 7
Returns HTML for displaying the recipe description summary.
1 string reference to 'theme_recipe_description_summary'
- recipe_theme in ./
recipe.module - Implements hook_theme().
1 theme call to theme_recipe_description_summary()
- recipe_view in ./
recipe.module - Implements hook_view().
File
- ./
recipe.module, line 920 - Contains functions for Recipe node CRUD and display.
Code
function theme_recipe_description_summary($variables) {
$node = $variables['node'];
// Wrap description in RDFa markup.
if (!empty($node->rdf_mapping['recipe_description'])) {
$attributes = rdf_rdfa_attributes($node->rdf_mapping['recipe_description']);
$attributes['class'] = array(
'recipe-section',
);
$node->recipe_description = theme('rdf_template_variable_wrapper', array(
'content' => $node->recipe_description,
'attributes' => $attributes,
'inline' => FALSE,
));
}
$output = '';
$output .= '<div>' . $node->recipe_description . '</div>';
return $output;
}