function recipe_html_recipeio in Recipe 7
Same name and namespace in other branches
- 6 plugins/recipe_html.module \recipe_html_recipeio()
- 7.2 modules/recipe_html.module \recipe_html_recipeio()
Implementation of hook_recipeio($type).
File
- includes/
recipe_html.module, line 14 - recipe_html.module - Enables a print view for recipes. This supports full 8-1/2" x 11", and 5"x7" and 3"x5" index cards. Some printers may not be able to deal with small page sizes like this. They may have to print on…
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;
}
}