You are here

function smileys_menu in Smileys 6

Same name and namespace in other branches
  1. 5 smileys.module \smileys_menu()

Implementation of hook_menu().

File

./smileys.module, line 294

Code

function smileys_menu() {
  $items = array();
  $items['admin/settings/smileys'] = array(
    'title' => t('Smileys'),
    'description' => t('Manage Smileys and toggle select box behavior for nodes and comments.'),
    'page callback' => 'smileys_admin_list',
    'access arguments' => array(
      'administer smileys',
    ),
    'file' => 'smileys.admin.inc',
  );
  $items['admin/settings/smileys/list'] = array(
    'title' => t('List'),
    'page callback' => 'smileys_admin_list',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
    'file' => 'smileys.admin.inc',
  );
  $items['admin/settings/smileys/add'] = array(
    'title' => t('Add'),
    'page callback' => 'smileys_admin_add',
    'access arguments' => array(
      'administer smileys',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'smileys.admin.inc',
  );
  $items['admin/settings/smileys/configure'] = array(
    'title' => t('Settings'),
    'description' => t('Smileys configuration.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'smileys_admin_settings',
    ),
    'access arguments' => array(
      'administer smileys',
    ),
    'weight' => 8,
    'type' => MENU_LOCAL_TASK,
    'file' => 'smileys.admin.inc',
  );
  $items['admin/settings/smileys/edit/%'] = array(
    'title' => t('Edit Smiley'),
    'page callback' => 'smileys_admin_add',
    'page arguments' => array(
      4,
    ),
    'access arguments' => array(
      'administer smileys',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'smileys.admin.inc',
  );
  $items['admin/settings/smileys/delete/%'] = array(
    'title' => t('Delete Smiley'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'smileys_admin_delete_confirm',
      4,
    ),
    'access arguments' => array(
      'administer smileys',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'smileys.admin.inc',
  );
  $items['admin/settings/smileys/category'] = array(
    'page callback' => 'smileys_category_handle',
    'access arguments' => array(
      'administer smileys',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'smileys.admin.inc',
  );
  $items['admin/settings/smileys/promote'] = array(
    'page callback' => 'smileys_promote_handle',
    'access arguments' => array(
      'administer smileys',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'smileys.admin.inc',
  );
  $items['admin/settings/smileys/weight'] = array(
    'page callback' => 'smileys_weight_handle',
    'access arguments' => array(
      'administer smileys',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'smileys.admin.inc',
  );
  $items['smileys/fetch'] = array(
    'page callback' => 'smileys_list',
    'access arguments' => array(
      'use smiley select box',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}