You are here

function disqus_menu in Disqus 6

Same name and namespace in other branches
  1. 5 disqus.module \disqus_menu()
  2. 7 disqus.module \disqus_menu()

Implementation of hook_menu().

File

./disqus.module, line 35

Code

function disqus_menu() {
  $items = array();
  $items['admin/settings/disqus'] = array(
    'title' => 'Disqus',
    'description' => 'Provides configuration options for the Disqus comment system.',
    'access arguments' => array(
      'administer disqus',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'disqus_admin_settings',
    ),
    'file' => 'disqus.admin.inc',
  );
  $items['admin/settings/disqus/general'] = array(
    'title' => 'General',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'description' => 'Provides general configuration options for the Disqus comment system.',
    'weight' => -10,
  );
  $items['disqus/closewindow'] = array(
    'title' => 'Please wait',
    'description' => 'Once the user logs in through the Disqus login workflow, they are redirected here to automatically close the popup window.',
    'access arguments' => array(
      'view disqus comments',
    ),
    'page callback' => 'disqus_closewindow',
    'file' => 'disqus.admin.inc',
    'type' => MENU_CALLBACK,
  );

  /*
  $items['disqus/oauth_callback'] = array(
    'title' => 'Authentication Callback',
    'description' => 'Menu callback after a user has authenticated for exporting via the API',
    'access arguments' => array('administer disqus'),
    'page callback' => '_disqus_oauth_callback',
    'file' => 'disqus.admin.inc',
    'type' => MENU_CALLBACK,
  );
  */
  return $items;
}