function bugherd_settings in BugHerd 7
Settings form page callback.
1 string reference to 'bugherd_settings'
- bugherd_menu in ./
bugherd.module - Implements hook_menu().
File
- ./
bugherd.module, line 105 - BugHerd module functions.
Code
function bugherd_settings($form_state) {
$form = array();
$link = l('http://www.bugherd.com/', 'http://www.bugherd.com/');
$description = t('To obtain your project key login or sign up for BugHerd at !link.', array(
'!link' => $link,
));
$form['bugherd_project_key'] = array(
'#type' => 'textfield',
'#title' => t('BugHerd Project key'),
'#default_value' => variable_get('bugherd_project_key'),
'#description' => $description,
'#size' => 60,
'#required' => TRUE,
);
$form['bugherd_disable_on_admin'] = array(
'#type' => 'checkbox',
'#title' => t('Disable on admin pages'),
'#default_value' => variable_get('bugherd_disable_on_admin', FALSE),
'#description' => t('Ticking the checkbox will prevent the BugHerd button being available on admin pages'),
);
return system_settings_form($form);
}