You are here

function smiley_menu in Smiley 7

Same name and namespace in other branches
  1. 6 smiley.module \smiley_menu()

Implements hook_menu().

File

./smiley.module, line 24
Implements the necessary hooks.

Code

function smiley_menu() {
  $items = array();
  $items['admin/config/content/smiley'] = array(
    'title' => 'Smileys',
    'description' => 'Customize your smiley.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'smiley_overview_form',
    ),
    'access arguments' => array(
      'administer smiley',
    ),
    'file' => 'smiley.admin.inc',
  );
  $items['admin/config/content/smiley/view'] = array(
    'title' => 'View',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/config/content/smiley/settings'] = array(
    'title' => 'Settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'smiley_settings_form',
    ),
    'access arguments' => array(
      'administer smiley',
    ),
    'weight' => 0,
    'type' => MENU_LOCAL_TASK,
    'file' => 'smiley.admin.inc',
  );
  $items['admin/config/content/smiley/import'] = array(
    'title' => 'Import',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'smiley_import_form',
    ),
    'access arguments' => array(
      'administer smiley',
    ),
    'weight' => 1,
    'type' => MENU_LOCAL_TASK,
    'file' => 'smiley.admin.inc',
  );
  return $items;
}