You are here

function crazyegg_admin_settings_form in Crazy Egg Integration 6

Same name and namespace in other branches
  1. 7 includes/admin.inc \crazyegg_admin_settings_form()
1 string reference to 'crazyegg_admin_settings_form'
crazyegg_menu in ./crazyegg.module
Implements hook_menu().

File

includes/admin.inc, line 3

Code

function crazyegg_admin_settings_form() {
  $form = array();
  $form['crazyegg_enabled'] = array(
    '#type' => 'radios',
    '#title' => t('Crazy Egg Enabled?'),
    '#options' => array(
      TRUE => t('Yes'),
      FALSE => t('No'),
    ),
    '#default_value' => variable_get('crazyegg_enabled', TRUE),
  );
  $form['crazyegg_account_id'] = array(
    '#type' => 'textfield',
    '#title' => t('Crazy Egg Account ID'),
    '#default_value' => variable_get('crazyegg_account_id', ''),
    '#description' => '(ex. 00111111)',
  );
  $account_explanation = '';
  $account_explanation .= t('This is your numerical CrazyEgg account ID, it is 8 digits long. The easy way to find it is by logging in to your CrazyEgg account and clicking the "What\'s my code" link located at the top of your Dashboard.');
  $account_explanation .= '<br />';
  $account_explanation .= t('');
  $account_explanation .= '<br />';
  $account_explanation .= l('http://www.crazyegg.com', 'http://www.crazyegg.com', array(
    'attributes' => array(
      'target' => '_blank',
    ),
  ));
  $form['account_explanation'] = array(
    '#type' => 'item',
    '#title' => t('What Is My Account ID?'),
    '#value' => $account_explanation,
  );
  return system_settings_form($form);
}