You are here

function fbconnect_api_keys_settings in Facebook Connect 6

Same name and namespace in other branches
  1. 8.2 fbconnect.admin.inc \fbconnect_api_keys_settings()
  2. 6.2 fbconnect.admin.inc \fbconnect_api_keys_settings()
  3. 7.2 fbconnect.admin.inc \fbconnect_api_keys_settings()

@file Administration page callbacks for the fbconnect module.

1 string reference to 'fbconnect_api_keys_settings'
fbconnect_menu in ./fbconnect.module
Implementation of hook_menu().

File

./fbconnect.admin.inc, line 9
Administration page callbacks for the fbconnect module.

Code

function fbconnect_api_keys_settings(&$form_state) {
  $form['fbconnect_key'] = array(
    '#type' => 'textfield',
    '#required' => true,
    '#title' => t('Facebook key'),
    '#default_value' => variable_get('fbconnect_key', NULL),
    '#description' => t('Your public API key'),
  );
  $form['fbconnect_skey'] = array(
    '#type' => 'textfield',
    '#required' => true,
    '#title' => t('Facebook Secret key'),
    '#default_value' => variable_get('fbconnect_skey', NULL),
    '#description' => t('Do not share your secret key with anyone'),
  );
  $form['fbconnect_language_code'] = array(
    '#type' => 'textfield',
    '#title' => t('Language code'),
    '#description' => t('Enter your country code here to get translated versions of facebook connect. (e.g. en_US or de_DE)'),
    '#default_value' => variable_get('fbconnect_language_code', 'en_US'),
  );
  $form['fbconnect_debug'] = array(
    '#type' => 'checkbox',
    '#title' => t('Debug mode'),
    '#default_value' => variable_get('fbconnect_debug', FALSE),
  );
  $form['fbconnect_connect_url'] = array(
    '#type' => 'item',
    '#title' => t('Connect url'),
    '#description' => t('Copy this value into Facebook Applications on Connect settings tab'),
    '#value' => variable_get('fbconnect_connect_url', $GLOBALS['base_url'] . '/'),
  );
  return system_settings_form($form);
}