function beautytips_textinput_admin_info in BeautyTips 6.2
Same name and namespace in other branches
- 8 includes/textinput.inc \beautytips_textinput_admin_info()
- 7.2 includes/textinput.inc \beautytips_textinput_admin_info()
File
- includes/
textinput.inc, line 3
Code
function beautytips_textinput_admin_info() {
$form['beautytips_text'] = array(
'#type' => 'fieldset',
'#title' => t('Text Input Tooltips'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['beautytips_text']['beautytips_text_input'] = array(
'#type' => 'checkbox',
'#title' => 'Display text input popups',
'#default_value' => variable_get('beautytips_text_input', FALSE),
);
$form['beautytips_text']['beautytips_select_input'] = array(
'#type' => 'checkbox',
'#title' => t('Display select box input popups'),
'#default_value' => variable_get('beautytips_select_input', FALSE),
);
$form['beautytips_text']['beautytips_position'] = array(
'#type' => 'radios',
'#title' => t('Which side should the text popups appear on?'),
'#options' => array(
'bottom' => t('bottom'),
'top' => t('top'),
'left' => t('left'),
'right' => t('right'),
),
'#default_value' => variable_get('beautytips_position', 'bottom'),
);
$form['beautytips_text']['beautytips_text_trigger'] = array(
'#type' => 'radios',
'#title' => t('What should trigger the popup?'),
'#options' => array(
'hover' => t('hover'),
'focus' => t('focus'),
),
'#default_value' => variable_get('beautytips_text_trigger', 'focus'),
);
$form['beautytips_text']['form_id'] = array(
'#type' => 'fieldset',
'#title' => t('Restrict text popups to specific forms. (OPTIONAL)'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['beautytips_text']['form_id']['beautytips_form_id'] = array(
'#type' => 'textfield',
'#title' => t('Enter the form id(s) to use for text popup beautytips'),
'#description' => t('You need to use Drupal php syntax like page_node_form'),
'#default_value' => variable_get('beautytips_form_id', ''),
);
$form['beautytips_text']['form_id']['beautytips_show_form'] = array(
'#type' => 'checkbox',
'#title' => t('Display form_ids'),
'#description' => t("Turn this on if you want to see the names of the form ids to enter above. The names will appear on the pages where the forms are displayed.") . '<div>' . t("Make sure that you turn it off when you're done retrieving the form_ids.") . '</div>',
'#default_value' => variable_get('beautytips_show_form', ''),
);
return $form;
}