function shortcode_shortcodes in Shortcode 6
Same name and namespace in other branches
- 7 shortcode.module \shortcode_shortcodes()
shortcodes hook implementation
Parameters
$op string - the operator - one of list, settings or tips:
$format - the filter format index:
$long:
File
- ./
shortcode.module, line 174
Code
function shortcode_shortcodes($op, $format = 1, $long = FALSE) {
switch ($op) {
case 'list':
// array indexed by the shortcode name
return array(
'random' => 'Code replacey by random text',
);
break;
// TODO: special settings
case 'settings':
break;
case 'tips':
$output = shortcode_shortcode_random_tip($format, $long);
return $output;
break;
default:
break;
}
}