You are here

function shortcode_basic_tags_shortcode_item_tip in Shortcode 7.2

Same name and namespace in other branches
  1. 6 shortcode_basic_tags/shortcode_basic_tags.module \shortcode_basic_tags_shortcode_item_tip()
  2. 7 shortcode_basic_tags/shortcode_basic_tags.module \shortcode_basic_tags_shortcode_item_tip()

Provides tip callback for item ShortCode.

1 string reference to 'shortcode_basic_tags_shortcode_item_tip'
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 634
Provides basic ShortCodes (as examples).

Code

function shortcode_basic_tags_shortcode_item_tip($format, $long) {
  $output = array();
  $output[] = '<p><strong>' . t('[item (class="additional class"|id=item id|type=div,d,span,s)]text[/item]') . '</strong> ';
  if ($long) {
    $output[] = t('Inserts an html item (type parameter = div or span) around the given text.') . '</p>';
    $output[] = '<p>' . t('Additional class names can be added by the <em>class</em> parameter. The id parameter gives the html an unique css id.') . '</p>';
    $output[] = '<p>&nbsp</p>';
  }
  else {
    $output[] = t('Inserts an html item (div or span) around the given text.') . '</p>';
  }
  return implode(' ', $output);
}