function recipe_export_html in Recipe 5
This function is called by recipe_export() to generate HTML for export.
Parameters
nid:
- an integer representing the node id (nid) of the node to export
Return value
- string containing HTML representing the recipe
File
- ./
recipe.module, line 870 - recipe.module - share recipes for drupal 5.x
Code
function recipe_export_html($nid) {
if ($nid == 0) {
drupal_goto('recipe');
}
$node = node_load(array(
'nid' => $nid,
'type' => 'recipe',
));
$node = recipe_node_prepare($node, FALSE);
$output = theme('node_recipe', $node, FALSE);
$html = theme('recipe_export_html', check_plain($node->title), $output);
return $html;
}