function recipe_html_recipeio in Recipe 7.2
Same name and namespace in other branches
- 6 plugins/recipe_html.module \recipe_html_recipeio()
- 7 includes/recipe_html.module \recipe_html_recipeio()
Implements hook_recipeio().
File
- modules/
recipe_html.module, line 15 - Enables a print view for recipes.
Code
function recipe_html_recipeio($type) {
$supported = array(
'export_single' => array(
'format_name' => t('Print View'),
'callback' => 'recipe_html_export_single',
'format_help' => t('NOTE: You must use your web browser\'s print dialog to change the page size and orientation.'),
'access arguments' => 'access content',
),
);
if (isset($supported[$type])) {
// Key needs to be lower case.
return array(
'recipeprint' => $supported[$type],
);
}
else {
return FALSE;
}
}