function shortcode_basic_tags_quote_attributes in Shortcode 7.2
Attributes form element for quote shortcode.
Used by shortcode_wysiwyg module to add form elements for attributes.
1 string reference to 'shortcode_basic_tags_quote_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 368 - Provides basic ShortCodes (as examples).
Code
function shortcode_basic_tags_quote_attributes($form, &$form_state) {
$form['quote-author'] = array(
'#title' => t('Author'),
'#type' => 'textfield',
'#states' => array(
'visible' => array(
':input[name="shortcode"]' => array(
'value' => 'quote',
),
),
),
);
$form['quote-class'] = array(
'#title' => t('Class'),
'#type' => 'textfield',
'#states' => array(
'visible' => array(
':input[name="shortcode"]' => array(
'value' => 'quote',
),
),
),
);
return $form;
}