You are here

function shortcode_basic_tags_shortcode_button_tip in Shortcode 6

Same name and namespace in other branches
  1. 7.2 shortcode_basic_tags/shortcode_basic_tags.module \shortcode_basic_tags_shortcode_button_tip()
  2. 7 shortcode_basic_tags/shortcode_basic_tags.module \shortcode_basic_tags_shortcode_button_tip()
1 call to shortcode_basic_tags_shortcode_button_tip()
shortcode_basic_tags_shortcodes in shortcode_basic_tags/shortcode_basic_tags.module
shortcodes hook implementation

File

shortcode_basic_tags/shortcode_basic_tags.module, line 126

Code

function shortcode_basic_tags_shortcode_button_tip($format, $long) {
  $output = '';
  if (shortcode_shortcode_is_enabled('button', $format)) {
    $output = '<p><strong>[button (class="additional class")]text[/button]</strong>';
    if ($long) {
      $output .= ' insert a link formatted like a button. Use url parameter for the link.</p>';
    }
    else {
      $output .= ' insert a link formatted like a button. The <em>url</em> parameter provides the link target. The <em>title</em> will be formatted as a link title (small tooltip over the link - helps for SEO). Additional class names can be added by the <em>class</em> parameter.</p>';
    }
  }
  return $output;
}