function link_admin_settings in Link 7
Form constructor for the settings form.
1 string reference to 'link_admin_settings'
- link_menu in ./
link.module - Implements hook_menu().
File
- ./
link.admin.inc, line 13 - Link admin settings.
Code
function link_admin_settings() {
$form['link_default_protocol'] = array(
'#type' => 'select',
'#title' => t('Protocol'),
'#options' => array(
LINK_HTTP_PROTOCOL => strtoupper(LINK_HTTP_PROTOCOL),
LINK_HTTPS_PROTOCOL => strtoupper(LINK_HTTPS_PROTOCOL),
),
'#default_value' => variable_get('link_default_protocol', LINK_HTTP_PROTOCOL),
'#description' => t('Select the default protocol to use for each link.'),
);
return system_settings_form($form);
}