You are here

function shortcode_list_all in Shortcode 7.2

Same name and namespace in other branches
  1. 6 shortcode.module \shortcode_list_all()
  2. 7 shortcode.module \shortcode_list_all()

Builds a list of all ShortCodes (for filter).

Calls the ShortCode_info hook with the list parameter on all module. Returns the all defined and altered ShortCode definitions.

3 calls to shortcode_list_all()
shortcode_list_all_enabled in ./shortcode.module
Returns only enabled ShortCodes for a specified input format.
_shortcode_get_shortcodes in ./shortcode.module
Get enabled ShortCodes for a given filter.
_shortcode_settings_form in ./shortcode.module
Provides settings form form ShortCodes enable.

File

./shortcode.module, line 14
Provides ShortCodes filter framework and API (like WP ShortCodes)

Code

function shortcode_list_all($reset = FALSE) {
  $shortcodes =& drupal_static(__FUNCTION__);
  if (!isset($shortcodes) || $reset) {
    $shortcodes = module_invoke_all('shortcode_info');

    // Allow alteration of the ShortCodes.
    drupal_alter('shortcode_info', $shortcodes);
  }
  return $shortcodes;
}