You are here

function recipe_plaintext_export_multi in Recipe 6

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

File

plugins/recipe_plaintext.module, line 138

Code

function recipe_plaintext_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_plaintext_export($row->nid);
    $o .= "\n====\n";
  }
  drupal_set_header('Content-type: text');
  return $o;
}