You are here

function template_preprocess_recipe_html_page in Recipe 7.2

Same name and namespace in other branches
  1. 7 includes/recipe_html.module \template_preprocess_recipe_html_page()

File

modules/recipe_html.module, line 78
Enables a print view for recipes.

Code

function template_preprocess_recipe_html_page(&$variables) {
  $css_path = drupal_get_path("module", "recipe") . "/modules/recipe_html.css";
  $variables['styles'] = '<style type="text/css" media="all">@import url("' . file_create_url($css_path) . '");</style>';
  $variables['title'] = check_plain($variables['node']->title);

  // 'contents' is already rendered.  Use the contents key so as not to confuse template authors.
  $variables['contents'] = $variables['node']->rendered;
}