You are here

function rate_ui_menu in Rate 7.2

Implements hook_menu().

File

ui/rate_ui.module, line 10
Main module file for the Rate UI module.

Code

function rate_ui_menu() {
  $menu = array();
  $menu['admin/structure/rate'] = array(
    'title' => 'Rate widgets',
    'description' => 'Manage rating widgets.',
    'page callback' => 'rate_ui_widgets_page',
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'rate_ui.pages.inc',
  );
  $menu['admin/structure/rate/add'] = array(
    'title' => 'Add rate widget',
    'description' => 'Manage rating widgets.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'rate_ui_widget_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_LOCAL_ACTION,
    'file' => 'rate_ui.form.inc',
  );
  $menu['admin/structure/rate/widget/%/edit'] = array(
    'title' => 'Edit Rate widget',
    'description' => 'Edit Rate widget.',
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'rate_ui.form.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'rate_ui_widget_form',
      4,
    ),
    'type' => MENU_CALLBACK,
  );
  $menu['admin/structure/rate/widget/%/delete'] = array(
    'title' => 'Delete Rate widget',
    'description' => 'Delete Rate widget.',
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'rate_ui.form.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'rate_ui_delete_form',
      4,
    ),
    'type' => MENU_CALLBACK,
  );
  return $menu;
}