You are here

function shortcode_embed_contents_shortcodes in Shortcode 6

Same name and namespace in other branches
  1. 7 shortcode_embed_contents/shortcode_embed_contents.module \shortcode_embed_contents_shortcodes()

Shortcodes hook implementation

File

shortcode_embed_contents/shortcode_embed_contents.module, line 8

Code

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

      // array indexed by the shortcode name
      return array(
        'node' => t('Embed a node into the text.'),
      );
      break;
    case 'tips':
      $output = shortcode_embed_contents_node_tip($format, $long);
      return $output;
      break;
    default:
      break;
  }
}