You are here

function taxonomy_redirect_get_all_filter_formats in Taxonomy Redirect 6

Same name and namespace in other branches
  1. 5 taxonomy_redirect.module \taxonomy_redirect_get_all_filter_formats()

Helper function to return an array of all input filters

1 call to taxonomy_redirect_get_all_filter_formats()
taxonomy_redirect_get_php_filter in ./taxonomy_redirect.module
Function that returns the format value of the PHP Code filter or zero if it doesn't exist.

File

./taxonomy_redirect.module, line 639

Code

function taxonomy_redirect_get_all_filter_formats() {
  global $user;
  static $formats;
  if (!isset($formats)) {
    $formats = array();
    $query = 'SELECT * FROM {filter_formats}';
    $result = db_query($query, $args);
    while ($format = db_fetch_object($result)) {
      $formats[$format->format] = $format;
    }
  }
  return $formats;
}