You are here

function smiley_menu in Smiley 6

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

Implementation of hook_menu().

File

./smiley.module, line 296

Code

function smiley_menu() {
  $items = array();
  $items['admin/settings/smiley'] = array(
    'title' => t('Smileys'),
    'description' => t('Manage Smileys and toggle select box behavior for nodes and comments.'),
    'page callback' => 'smiley_admin_list',
    'access arguments' => array(
      'administer smiley',
    ),
    'file' => 'smiley.admin.inc',
  );
  $items['admin/settings/smiley/list'] = array(
    'title' => t('List'),
    'page callback' => 'smiley_admin_list',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
    'file' => 'smiley.admin.inc',
  );
  $items['admin/settings/smiley/add'] = array(
    'title' => t('Add'),
    'page callback' => 'smiley_admin_add',
    'access arguments' => array(
      'administer smiley',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'smiley.admin.inc',
  );
  $items['admin/settings/smiley/configure'] = array(
    'title' => t('Settings'),
    'description' => t('Smileys configuration.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'smiley_admin_settings',
    ),
    'access arguments' => array(
      'administer smiley',
    ),
    'weight' => 8,
    'type' => MENU_LOCAL_TASK,
    'file' => 'smiley.admin.inc',
  );
  $items['admin/settings/smiley/edit/%'] = array(
    'title' => t('Edit Smiley'),
    'page callback' => 'smiley_admin_add',
    'page arguments' => array(
      4,
    ),
    'access arguments' => array(
      'administer smiley',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'smiley.admin.inc',
  );
  $items['admin/settings/smiley/delete/%'] = array(
    'title' => t('Delete Smiley'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'smiley_admin_delete_confirm',
      4,
    ),
    'access arguments' => array(
      'administer smiley',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'smiley.admin.inc',
  );
  $items['admin/settings/smiley/category'] = array(
    'page callback' => 'smiley_category_handle',
    'access arguments' => array(
      'administer smiley',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'smiley.admin.inc',
  );
  $items['admin/settings/smiley/promote'] = array(
    'page callback' => 'smiley_promote_handle',
    'access arguments' => array(
      'administer smiley',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'smiley.admin.inc',
  );
  $items['admin/settings/smiley/weight'] = array(
    'page callback' => 'smiley_weight_handle',
    'access arguments' => array(
      'administer smiley',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'smiley.admin.inc',
  );
  $items['smiley/fetch'] = array(
    'page callback' => 'smiley_list',
    'access arguments' => array(
      'use smiley select box',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}