You are here

function patterns_parser_get_formats in Patterns 7

Same name and namespace in other branches
  1. 7.2 includes/parser/ \patterns_parser_get_formats()

Returns an array of formats currently supported by the patterns module.


bool $reset (optional) If FALSE, it does not rebuild the index: of available formats.

Return value

array Array of supported file types.

5 calls to patterns_parser_get_formats()
patterns_forms_get_formats_selector in includes/forms/
Builds a HTML select element with all the currently available patterns formats.
patterns_import_validate in includes/forms/
patterns_io_scan_directories in includes/io/
Scan directories looking for patterns files.
patterns_parser_ready in includes/parser/
Checks whether there is at least one parser currently enabled.
_patterns_io_file_has_valid_extension in includes/io/
Checks whether the extension of the specified file name matches one of the currently available parser formats.


includes/parser/, line 84


function patterns_parser_get_formats($reset = TRUE) {
  return array_keys(patterns_parser_build_formats_index($reset));