function shortcode_basic_tags_clear_attributes in Shortcode 7.2
Attributes form element for clear ShortCode.
Used by shortcode_wysiwyg module to add form elements for attributes.
1 string reference to 'shortcode_basic_tags_clear_attributes'
- shortcode_basic_tags_shortcode_info in shortcode_basic_tags/
shortcode_basic_tags.module - Implements hook_shortcode_info().
File
- shortcode_basic_tags/
shortcode_basic_tags.module, line 665 - Provides basic ShortCodes (as examples).
Code
function shortcode_basic_tags_clear_attributes($form, &$form_state) {
$form['clear-class'] = array(
'#title' => t('Class'),
'#type' => 'textfield',
'#states' => array(
'visible' => array(
':input[name="shortcode"]' => array(
'value' => 'clear',
),
),
),
);
$form['clear-style'] = array(
'#title' => t('Style'),
'#type' => 'textfield',
'#states' => array(
'visible' => array(
':input[name="shortcode"]' => array(
'value' => 'clear',
),
),
),
);
$form['clear-id'] = array(
'#title' => t('ID'),
'#type' => 'textfield',
'#states' => array(
'visible' => array(
':input[name="shortcode"]' => array(
'value' => 'clear',
),
),
),
);
$form['clear-type'] = array(
'#title' => t('type'),
'#type' => 'select',
'#options' => array(
'd' => 'div',
's' => 'span',
),
'#states' => array(
'visible' => array(
':input[name="shortcode"]' => array(
'value' => 'clear',
),
),
),
);
return $form;
}