You are here

function shortcode_basic_tags_shortcode_clear_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_clear_tip()
  2. 7 shortcode_basic_tags/shortcode_basic_tags.module \shortcode_basic_tags_shortcode_clear_tip()

Provides tip callback for clear Shortcode.

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

Code

function shortcode_basic_tags_shortcode_clear_tip($format, $long) {
  $output = array();
  $output[] = '<p><strong>' . t('[clear (class="additional class"|id=item id|type=div,d,span,s)]text[/clear]') . '</strong>';
  if ($long) {
    $output[] = t('Inserts a float-clearing html item (type parameter = div or span) around the given text. Use the simple [clear /].') . '</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 a float-clearing html item (div or span) around the given text. Use the simple [clear /].') . '</p>';
  }
  return implode(' ', $output);
}