You are here

function fb_register_menu in Drupal for Facebook 6.2

Implementation of hook_menu().

File

contrib/fb_register.module, line 17
This code aims to prevent duplicate accounts.

Code

function fb_register_menu() {

  // Register Users config page.
  $items[FB_PATH_ADMIN_APPS . '/%fb/fb_register'] = array(
    'title' => 'Register Users',
    'page callback' => 'fb_register_detail_page',
    'page arguments' => array(
      FB_PATH_ADMIN_APPS_ARGS,
    ),
    'access arguments' => array(
      FB_PERM_ADMINISTER,
    ),
    'type' => MENU_LOCAL_TASK,
  );

  // Callback to register users, right now instead of waiting for cron.
  $items[FB_PATH_ADMIN_APPS . '/%fb/fb_register/doit/%'] = array(
    'title' => 'Register Users',
    'page callback' => 'fb_register_all_users',
    'page arguments' => array(
      FB_PATH_ADMIN_APPS_ARGS,
      FB_PATH_ADMIN_APPS_ARGS + 3,
    ),
    'access arguments' => array(
      FB_PERM_ADMINISTER,
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}