You are here

function shortcode_video_tip in Shortcode Video 7

Provides tip callback for tip ShortCode.

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

File

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

Code

function shortcode_video_tip($format, $long) {
  $output = array();
  $output[] = '<p><strong>' . t('[video]video url[/video]') . '</strong> ';
  if ($long) {
    $output[] = t('Embeds the video into the text.') . '</p>';
  }
  else {
    $output[] = t('Embeds video into the content text. With the <em>width</em> and <em>height</em> parameter you can specify the video size. Use <em>title</em> to specify a title attribute.') . '</p>';
    $output[] = '<p>' . t('For YouTube videos you can specify the width with 420, 480, 640, 960 as the default videos sizes, then the height of the video will be added according to the default embed sizes. The default video size is 480x360px.') . '</p>';
  }
  return implode('', $output);
}