function bs_shortcodes_img_attributes in Bootstrap 3 shortcodes 7
File
- includes/
bootstrap-shortcodes-attributes.inc, line 870 - Adds attribute callbacks for shortcode wysiwyg integration @author Jurriaan Roelofs
Code
function bs_shortcodes_img_attributes($form, $form_state) {
$form['type'] = array(
'#type' => 'select',
'#title' => t('type'),
'#options' => array(
'rounded' => t('rounded'),
'circle' => t('circle'),
'thumbnail' => t('thumbnail'),
),
'#states' => array(
'visible' => array(
':input[name="shortcode"]' => array(
'value' => 'img',
),
),
),
);
$form['responsive'] = array(
'#type' => 'select',
'#title' => t('responsive'),
'#options' => array(
'' => t('false'),
'true' => t('true'),
),
'#states' => array(
'visible' => array(
':input[name="shortcode"]' => array(
'value' => 'img',
),
),
),
);
$form['xclass'] = array(
'#type' => 'textfield',
'#title' => t('xclass'),
'#size' => 30,
'#maxlength' => 30,
'#states' => array(
'visible' => array(
':input[name="shortcode"]' => array(
'value' => 'img',
),
),
),
);
$form['data'] = array(
'#type' => 'textfield',
'#title' => t('data'),
'#size' => 30,
'#maxlength' => 30,
'#states' => array(
'visible' => array(
':input[name="shortcode"]' => array(
'value' => 'img',
),
),
),
);
return $form;
}