You are here

function recipe_pdf35_recipeio in Recipe 6

Implementation of hook_recipeio($type).

File

plugins/recipe_pdf35.module, line 12
recipe_pdf35.module - Enables exporting of 3x5" cards in pdf format. This is incredibly rudimentary at this point. 1 and only 1 card and if you go over, the text is lost.

Code

function recipe_pdf35_recipeio($type) {
  $supported = array(
    'export_single' => array(
      'format_name' => t('PDF-3x5'),
      'callback' => 'recipe_pdf35_export_single',
      'format_help' => t('Export 3"x5" cards in pdf format.'),
      // No special permissions for pdf export.
      'access arguments' => 'access content',
    ),
  );
  if (isset($supported[$type])) {
    return array(
      'pdf35' => $supported[$type],
    );
  }
  else {
    return FALSE;
  }
}