You are here

function recipe_help in Recipe 6

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

Implementation of hook_help().

1 string reference to 'recipe_help'
recipe_admin_settings in ./recipe.admin.inc
Settings form for menu callback

File

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

Code

function recipe_help($path, $arg) {
  switch ($path) {
    case 'node/add/recipe':
      return variable_get('recipe_help', '');
    case 'admin/content/recipe/export_multi':
      $output = '<p>' . t('You can enable/disable bulk export formats on the <a href="@modules-page">modules page</a> in the recipes section.', array(
        '@modules-page' => url('admin/build/modules'),
      )) . '</p>';
      return $output;
    case 'admin/content/recipe/import_multi':
      $output = '<p>' . t('You can enable/disable bulk import formats on the <a href="@modules-page">modules page</a> in the recipes section.', array(
        '@modules-page' => url('admin/build/modules'),
      )) . '</p>';
      return $output;
  }
}