You are here

function shortcode_basic_tags_shortcodes in Shortcode 6

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

shortcodes hook implementation

File

shortcode_basic_tags/shortcode_basic_tags.module, line 9

Code

function shortcode_basic_tags_shortcodes($op, $format = 1, $long = FALSE) {
  switch ($op) {
    case 'list':

      // array indexed by the shortcode name
      return array(
        'highlight' => t('Insert a span around the text with highlight css class.'),
        // use t()!
        'button' => t('Insert a link formatted like a button.'),
        // use t()!
        'dropcap' => t('Replace a given text formatted like a dropcap.'),
        // use t()!
        'quote' => t('Replace a given text formatted like a quote.'),
        // use t()!
        'item' => t('Insert div or span around the text with some css classes.'),
        // use t()!
        'clear' => t('Insert a clearer div for a proper layout.'),
        // use t()!
        'link' => t('Makes an aliased link to the given path'),
      );
      break;
    case 'tips':
      $output = shortcode_basic_tags_shortcode_highlight_tip($format, $long);
      $output .= shortcode_basic_tags_shortcode_button_tip($format, $long);
      $output .= shortcode_basic_tags_shortcode_dropcap_tip($format, $long);
      $output .= shortcode_basic_tags_shortcode_quote_tip($format, $long);
      $output .= shortcode_basic_tags_shortcode_item_tip($format, $long);
      $output .= shortcode_basic_tags_shortcode_link_tip($format, $long);
      return $output;
      break;
    default:
      break;
  }
}