function bs_shortcodes_tooltip_attributes in Bootstrap 3 shortcodes 7
File
- includes/
bootstrap-shortcodes-attributes.inc, line 2394 - Adds attribute callbacks for shortcode wysiwyg integration @author Jurriaan Roelofs
Code
function bs_shortcodes_tooltip_attributes($form, $form_state) {
$form['title'] = array(
'#type' => 'textfield',
'#title' => t('title'),
'#size' => 30,
'#maxlength' => 30,
'#states' => array(
'visible' => array(
':input[name="shortcode"]' => array(
'value' => 'tooltip',
),
),
),
);
$form['placement'] = array(
'#type' => 'select',
'#title' => t('placement'),
'#options' => array(
'left' => t('left'),
'top' => t('top'),
'bottom' => t('bottom'),
'right' => t('right'),
),
'#states' => array(
'visible' => array(
':input[name="shortcode"]' => array(
'value' => 'tooltip',
),
),
),
);
$form['animation'] = array(
'#type' => 'textfield',
'#title' => t('animation'),
'#size' => 30,
'#maxlength' => 30,
'#states' => array(
'visible' => array(
':input[name="shortcode"]' => array(
'value' => 'tooltip',
),
),
),
);
$form['html'] = array(
'#type' => 'select',
'#title' => t('html'),
'#options' => array(
'' => t('false'),
'true' => t('true'),
),
'#states' => array(
'visible' => array(
':input[name="shortcode"]' => array(
'value' => 'tooltip',
),
),
),
);
return $form;
}