You are here

function alchemy_menu in Alchemy 6

Same name and namespace in other branches
  1. 7 alchemy.module \alchemy_menu()

Implementation of hook_menu().

File

./alchemy.module, line 14
DO NOT COMMIT TO DRUPAL CONTRIB! THIS MODULE IS FOR DEVELOPMENT ONLY.

Code

function alchemy_menu() {
  $items = array();
  $items['alchemy/util'] = array(
    'title' => t('Alchemy Util'),
    'page callback' => 'alchemy_util',
    'access callback' => 'user_access',
    'access arguments' => array(
      'access alchemy',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  $items['alchemy'] = array(
    'title' => t('Alchemy Keywords'),
    'page callback' => 'alchemy_get_elements_from_node',
    'access callback' => 'user_access',
    'access arguments' => array(
      'access alchemy',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/settings/alchemy'] = array(
    'title' => t('Alchemy'),
    'description' => 'Settings for Alchemy.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'alchemy_admin_settings',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'alchemy.admin.inc',
  );
  if (function_exists('alchemy_contentanalysis_menu') || function_exists('alchemy_tagging_suggest_menu')) {
    $items['admin/settings/alchemy/general'] = $items['admin/settings/alchemy'];
    $items['admin/settings/alchemy/general']['title'] = t('General');
    $items['admin/settings/alchemy/general']['type'] = MENU_LOCAL_TASK;
    $items['admin/settings/alchemy/general']['weight'] = -10;
  }
  return $items;
}