You are here

function recipe_theme in Recipe 6

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

Implementation of hook_theme().

File

./recipe.module, line 33
recipe.module - share recipes

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(
      'arguments' => array(
        'form' => NULL,
      ),
    ),
    'recipe_summary' => array(
      'function' => 'theme_recipe_summary',
      'arguments' => array(
        'node' => NULL,
        'options' => array(
          'show_title' => TRUE,
        ),
      ),
    ),
    'recipe_ingredients' => array(
      'function' => 'theme_recipe_ingredients',
      'arguments' => array(
        'node' => NULL,
      ),
    ),
    'recipe_category_index_page' => array(
      'arguments' => array(
        'tree' => NULL,
      ),
      'file' => 'recipe_category_index.inc',
    ),
    'recipe_ingredient_index_page' => array(
      'arguments' => array(
        'tree' => NULL,
      ),
      'file' => 'recipe_ingredient_index.inc',
    ),
    'recipe_name_index_page' => array(
      'arguments' => array(
        $alpha_list = NULL,
        $node_list = NULL,
      ),
      'file' => 'recipe_name_index.inc',
    ),
  );
}