function filter_get_filters

cis7 filter.module filter_get_filters()
cle7 filter.module filter_get_filters()
elmsmedia7 filter.module filter_get_filters()
icor7 filter.module filter_get_filters()
meedjum_blog7 filter.module filter_get_filters()
mooc7 filter.module filter_get_filters()

Returns a list of all filters provided by modules.

Return value

array An array of filter formats.

7 calls to filter_get_filters()
check_markup in modules/filter/filter.module
Runs all the enabled filters on a piece of text.
filter_admin_format_form in modules/filter/filter.admin.inc
Form constructor for the text format add/edit form.
filter_features_export in sites/all/modules/ulmus/features/includes/features.filter.inc
Implements hook_features_export().
filter_format_save in modules/filter/filter.module
Saves a text format object to the database.
filter_list_format in modules/filter/filter.module
Retrieves a list of filters for a given text format.

... See full list

2 string references to 'filter_get_filters'

File

modules/filter/filter.module, line 592
Framework for handling the filtering of content.

Code

function filter_get_filters() {
  $filters = &drupal_static(__FUNCTION__, array());

  if (empty($filters)) {
    foreach (module_implements('filter_info') as $module) {
      $info = module_invoke($module, 'filter_info');
      if (isset($info) && is_array($info)) {
        // Assign the name of the module implementing the filters and ensure
        // default values.
        foreach (array_keys($info) as $name) {
          $info[$name]['module'] = $module;
          $info[$name] += array(
            'description' => '',
            'weight' => 0,
          );
        }
        $filters = array_merge($filters, $info);
      }
    }
    // Allow modules to alter filter definitions.
    drupal_alter('filter_info', $filters);

    uasort($filters, '_filter_list_cmp');
  }

  return $filters;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.