You are here

function shortcode_basic_tags_shortcode_link_tip in Shortcode 7

Same name and namespace in other branches
  1. 6 shortcode_basic_tags/shortcode_basic_tags.module \shortcode_basic_tags_shortcode_link_tip()
  2. 7.2 shortcode_basic_tags/shortcode_basic_tags.module \shortcode_basic_tags_shortcode_link_tip()
1 call to shortcode_basic_tags_shortcode_link_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 390

Code

function shortcode_basic_tags_shortcode_link_tip($format, $long) {
  $output = '';
  if (shortcode_shortcode_is_enabled('link', $format)) {
    $output = '<p><strong>[link path="the drupal path" (title="link title"|class="additional class"|id=item id|style=css style rules)]text[/link]</strong>';
    if ($long) {
      $output .= ' inserts an aliased drupal path around the text. You can omit the text and the closing [/link], you gives back the url only.</p>';
      $output .= '<p>Additional class names can be added by the <em>class</em> parameter. Id parameter gives the html an unique css id. In the <em>style</em> parameter you can use a css definitions.</p>';
      $output .= '<p>&nbsp</p>';
    }
    else {
      $output .= ' inserts an aliased drupal path around the text. You can omit the text and the closing [/link], you gives back the url only.</p>';
    }
  }
  return $output;
}