You are here

function simple_fb_connect_menu in Simple FB Connect 7

Same name and namespace in other branches
  1. 7.2 simple_fb_connect.module \simple_fb_connect_menu()

Implements hook_menu().

File

./simple_fb_connect.module, line 15
Simple Facebook Login Module for Drupal Sites.

Code

function simple_fb_connect_menu() {
  $items['user/simple-fb-connect'] = array(
    'title' => (variable_get('simple_fb_connect_login_only', 0) == 0 ? 'Register/' : '') . 'Login with FB',
    'page callback' => 'simple_fb_connect_login',
    'access callback' => 'user_is_anonymous',
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/config/people/simple-fb-connect'] = array(
    'title' => 'Simple FB Connect Settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'simple_fb_connect_api_keys_settings',
    ),
    'access arguments' => array(
      'administer simple fb',
    ),
    'file' => 'simple_fb_connect.admin.inc',
  );
  return $items;
}