function shortcode_basic_tags_shortcode_info in Shortcode 7.2
Implements hook_shortcode_info().
Using the same formatting as hook_filter_info()
File
- shortcode_basic_tags/
shortcode_basic_tags.module, line 13 - Provides basic ShortCodes (as examples).
Code
function shortcode_basic_tags_shortcode_info() {
$shortcodes['quote'] = array(
'title' => t('Quote'),
'description' => t('Replace the given text formatted like as a quote.'),
'process callback' => 'shortcode_basic_tags_shortcode_quote',
// todo: implements this.
// 'settings callback' => '_shortcode_settings_form',
'attributes callback' => 'shortcode_basic_tags_quote_attributes',
'tips callback' => 'shortcode_basic_tags_shortcode_quote_tip',
);
$shortcodes['img'] = array(
'title' => t('Image'),
'description' => t('Show an image.'),
'process callback' => 'shortcode_basic_tags_shortcode_img',
// todo: implements this.
// 'settings callback' => '_shortcode_settings_form',
'attributes callback' => 'shortcode_basic_tags_img_attributes',
'tips callback' => 'shortcode_basic_tags_shortcode_img_tip',
);
$shortcodes['highlight'] = array(
'title' => t('Highlight'),
'description' => t('Insert a span with highlight css class around the text.'),
'process callback' => 'shortcode_basic_tags_shortcode_highlight',
// todo: implements this.
// settings callback' => '_shortcode_settings_form',
'attributes callback' => 'shortcode_basic_tags_highlight_attributes',
'tips callback' => 'shortcode_basic_tags_shortcode_highlight_tip',
);
$shortcodes['button'] = array(
'title' => t('Button'),
'description' => t('Insert a link formatted as a button.'),
'process callback' => 'shortcode_basic_tags_shortcode_button',
// todo: implements this.
// 'settings callback' => '_shortcode_settings_form',
'attributes callback' => 'shortcode_basic_tags_button_attributes',
'tips callback' => 'shortcode_basic_tags_shortcode_button_tip',
);
$shortcodes['dropcap'] = array(
'title' => t('Dropcap'),
'description' => t('Replace the given text formatted like as a dropcap.'),
'process callback' => 'shortcode_basic_tags_shortcode_dropcap',
// todo: implements this.
// 'settings callback' => '_shortcode_settings_form',
'attributes callback' => 'shortcode_basic_tags_dropcap_attributes',
'tips callback' => 'shortcode_basic_tags_shortcode_dropcap_tip',
);
$shortcodes['item'] = array(
'title' => t('Item'),
'description' => t('Insert div or span around the text with some css classes.'),
'process callback' => 'shortcode_basic_tags_shortcode_item',
// todo: implements this.
// 'settings callback' => '_shortcode_settings_form',
'attributes callback' => 'shortcode_basic_tags_item_attributes',
'tips callback' => 'shortcode_basic_tags_shortcode_item_tip',
);
$shortcodes['clear'] = array(
'title' => t('Clear'),
'description' => t('Insert a float-clearing div for a proper layout.'),
'process callback' => 'shortcode_basic_tags_shortcode_clear',
// todo: implements this.
// 'settings callback' => '_shortcode_settings_form',
'attributes callback' => 'shortcode_basic_tags_clear_attributes',
'tips callback' => 'shortcode_basic_tags_shortcode_clear_tip',
);
$shortcodes['link'] = array(
'title' => t('Link'),
'description' => t('Makes an aliased link to the given path.'),
'process callback' => 'shortcode_basic_tags_shortcode_link',
// todo: implements this.
// 'settings callback' => '_shortcode_settings_form',
'attributes callback' => 'shortcode_basic_tags_link_attributes',
'tips callback' => 'shortcode_basic_tags_shortcode_link_tip',
);
$shortcodes['random'] = array(
'title' => t('Random text'),
'description' => t('Generating random text.'),
'process callback' => 'shortcode_basic_tags_shortcode_random',
// todo: implements this.
// 'settings callback' => '_shortcode_settings_form',
'attributes callback' => 'shortcode_basic_tags_random_attributes',
'tips callback' => 'shortcode_basic_tags_shortcode_random_tip',
);
return $shortcodes;
}