You are here

function recipe_mastercook4_export_multi in Recipe 6

Same name and namespace in other branches
  1. 7.2 modules/recipe_mastercook4.module \recipe_mastercook4_export_multi()
  2. 7 includes/recipe_mastercook4.module \recipe_mastercook4_export_multi()
1 string reference to 'recipe_mastercook4_export_multi'
recipe_mastercook4_recipeio in plugins/recipe_mastercook4.module
Implementation of hook_recipeio($type).

File

plugins/recipe_mastercook4.module, line 44
recipe_mastercook4.module - Enables importing and exporting of MasterCook4 format recipes.

Code

function recipe_mastercook4_export_multi() {

  // you should not be able to export unpublished recipes
  $rs = db_query("SELECT n.nid from {node} n WHERE n.type='recipe' and n.status>0 ORDER BY n.title");
  $o = '';
  while ($row = db_fetch_object($rs)) {
    $o .= recipe_mastercook4_export_single($row->nid);
  }
  drupal_set_header('Content-type: text');
  return $o;
}