You are here

function plus1_menu in Plus 1 6

Same name and namespace in other branches
  1. 6.2 plus1.module \plus1_menu()
  2. 7 plus1.module \plus1_menu()

Implementation of hook_menu().

File

./plus1.module, line 16
A simple +1 voting widget module.

Code

function plus1_menu() {
  $items['plus1/vote/%'] = array(
    'title' => t('Vote'),
    'page callback' => 'plus1_vote',
    'page arguments' => array(
      2,
    ),
    'access arguments' => array(
      'rate content',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/settings/plus1'] = array(
    'title' => t('Plus 1'),
    'description' => t('Allows readers to vote on content.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'plus1_settings',
    ),
    'access arguments' => array(
      'administer the voting widget',
    ),
  );
  return $items;
}