You are here

function likebtn_menu in Like Button 8.2

Same name and namespace in other branches
  1. 7 likebtn.module \likebtn_menu()

Implements hook_menu().

File

./likebtn.module, line 188
Implements the LikeBtn module.

Code

function likebtn_menu() {
  $items = array();
  $items['admin/config/services/likebtn'] = array(
    'title' => t('LikeBtn configuration'),
    'description' => t('Configuration for LikeBtn module'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'likebtn_general_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'likebtn.admin.inc',
  );
  $items['admin/config/services/likebtn/general-settings'] = array(
    'title' => t('General settings'),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/config/services/likebtn/likebtn-settings'] = array(
    'title' => t('LikeBtn settings'),
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'likebtn_likebtn_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'likebtn.admin.inc',
  );
  $items['admin/config/services/likebtn/testsync'] = array(
    'page callback' => 'likebtn_test_sync',
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['node/%node/likes'] = array(
    'title' => t('Likes'),
    'page callback' => 'likebtn_likes_page',
    'page arguments' => array(
      1,
      'node',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
    'file' => 'likebtn.likes.inc',
  );
  $items['comment/%comment/likes'] = array(
    'title' => t('Likes'),
    'page callback' => 'likebtn_likes_page',
    'page arguments' => array(
      1,
      'comment',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
    'file' => 'likebtn.likes.inc',
  );
  return $items;
}