You are here

function recipe_html_recipeio in Recipe 6

Same name and namespace in other branches
  1. 7.2 modules/recipe_html.module \recipe_html_recipeio()
  2. 7 includes/recipe_html.module \recipe_html_recipeio()

Implementation of hook_recipeio($type).

File

plugins/recipe_html.module, line 11
recipe_recipeML.module - Enables importing and exporting of recipeML format recipes.

Code

function recipe_html_recipeio($type) {
  $supported = array(
    'export_single' => array(
      'format_name' => t('HTML'),
      'callback' => 'recipe_html_export_single',
      'format_help' => t('Export to a printer friendly HTML format.'),
      'access arguments' => 'access content',
    ),
  );
  if (isset($supported[$type])) {
    return array(
      'reciphtml' => $supported[$type],
    );
  }
  else {
    return FALSE;
  }
}