You are here

function shortcode_video_attributes in Shortcode Video 7

Attributes form element for video ShortCode.

Used by ShortCode_wysiwyg module to add form elements for attributes.

1 string reference to 'shortcode_video_attributes'
shortcode_video_shortcode_info in ./shortcode_video.module
Implements hook_shortcode_info().

File

./shortcode_video.module, line 58
ShortCode for embedding videos.

Code

function shortcode_video_attributes($form, &$form_state) {
  $form['video-height'] = array(
    '#title' => t('Height'),
    '#type' => 'textfield',
    '#states' => array(
      'visible' => array(
        ':input[name="shortcode"]' => array(
          'value' => 'video',
        ),
      ),
    ),
  );
  $form['video-width'] = array(
    '#title' => t('Width'),
    '#type' => 'textfield',
    '#states' => array(
      'visible' => array(
        ':input[name="shortcode"]' => array(
          'value' => 'video',
        ),
      ),
    ),
  );
  $form['video-class'] = array(
    '#title' => t('class'),
    '#type' => 'textfield',
    '#states' => array(
      'visible' => array(
        ':input[name="shortcode"]' => array(
          'value' => 'video',
        ),
      ),
    ),
  );
  return $form;
}