You are here

function bugherd_configuration in BugHerd 6

1 string reference to 'bugherd_configuration'
bugherd_menu in ./bugherd.module
Implements hook_menu().

File

./bugherd.module, line 86
BugHerd module functions.

Code

function bugherd_configuration($form_state) {
  $form = array();
  $link = l('http://www.bugherd.com/', 'http://www.bugherd.com/');
  $description = t('To obtain an API key sign up for BugHerd at !link.', array(
    '!link' => $link,
  ));
  $form['bugherd_api_key'] = array(
    '#type' => 'textfield',
    '#title' => t('BugHerd API key'),
    '#default_value' => variable_get('bugherd_api_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);
}