You are here

function recipe_theme in Recipe 7.2

Same name and namespace in other branches
  1. 8.2 recipe.module \recipe_theme()
  2. 6 recipe.module \recipe_theme()
  3. 7 recipe.module \recipe_theme()

Implements hook_theme().

File

./recipe.module, line 29
Contains functions for Recipe node CRUD and display.

Code

function recipe_theme($existing, $type, $theme, $path) {
  return array(
    'recipe_landing_page' => array(
      'file' => 'recipe.landing.page.inc',
    ),
    // The ingredients sub-form on the recipe edit screen.
    'ingredients_form' => array(
      'render element' => 'form',
    ),
    'recipe_summary' => array(
      'function' => 'theme_recipe_summary',
      'variables' => array(
        'node' => NULL,
        'show_title' => TRUE,
      ),
    ),
    'recipe_duration' => array(
      'variables' => array(
        'duration' => 0,
      ),
    ),
    'recipe_ingredient' => array(
      'variables' => array(
        'name' => NULL,
        'quantity' => 0,
        'unit' => array(),
        'note' => '',
        'link' => 0,
      ),
    ),
  );
}