You are here

function recipe_theme in Recipe 7

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

Implements hook_theme().

File

./recipe.module, line 30
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_description' => array(
      'function' => 'theme_recipe_description',
      'variables' => array(
        'node' => NULL,
      ),
    ),
    'recipe_description_summary' => array(
      'function' => 'theme_recipe_description_summary',
      'variables' => array(
        'node' => NULL,
      ),
    ),
    'recipe_summary' => array(
      'function' => 'theme_recipe_summary',
      'variables' => array(
        'node' => NULL,
        'show_title' => TRUE,
      ),
    ),
    'recipe_notes' => array(
      'function' => 'theme_recipe_notes',
      'variables' => array(
        'node' => NULL,
      ),
    ),
    'recipe_instructions' => array(
      'function' => 'theme_recipe_instructions',
      'variables' => array(
        'node' => NULL,
      ),
    ),
    'recipe_ingredients' => array(
      'function' => 'theme_recipe_ingredients',
      'variables' => array(
        'node' => NULL,
      ),
    ),
  );
}