function fbconnect_api_keys_settings in Facebook Connect 6.2
Same name and namespace in other branches
- 8.2 fbconnect.admin.inc \fbconnect_api_keys_settings()
- 6 fbconnect.admin.inc \fbconnect_api_keys_settings()
- 7.2 fbconnect.admin.inc \fbconnect_api_keys_settings()
@todo.
1 string reference to 'fbconnect_api_keys_settings'
- fbconnect_menu in ./
fbconnect.module - Implements hook_menu().
File
- ./
fbconnect.admin.inc, line 11 - Administration page callbacks for the fbconnect module.
Code
function fbconnect_api_keys_settings(&$form_state) {
$form['fbconnect_appid'] = array(
'#type' => 'textfield',
'#required' => TRUE,
'#title' => t('Application ID'),
'#default_value' => variable_get('fbconnect_appid', NULL),
'#description' => t('Your Application ID, <strong> not API Key </strong>'),
);
$form['fbconnect_skey'] = array(
'#type' => 'textfield',
'#required' => TRUE,
'#title' => t('Application Secret'),
'#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' => module_exists('i18n') ? t('Default language code') : 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'),
);
if (module_exists('i18n')) {
$form['language_codes'] = array(
'#type' => 'fieldset',
'#title' => t('Automatically Switch Language Code'),
'#description' => t('Enable the fbconnect module to use a different language code for each of your site languages.'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
foreach (language_list() as $langcode => $language) {
$form['language_codes']['fbconnect_language_code_' . $langcode] = array(
'#type' => 'select',
'#title' => t('@name (@native) Language code', array(
'@name' => $language->name,
'@native' => $language->native,
)),
'#default_value' => variable_get('fbconnect_language_code_' . $langcode, ''),
'#options' => array(
'' => t('- Use default -'),
) + _fbconnect_language_codes(),
);
}
}
$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'),
'#default_value' => variable_get('fbconnect_connect_url', $GLOBALS['base_url'] . '/'),
);
return system_settings_form($form);
}