You are here

function patterns_parser_get_formats in Patterns 7

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

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

Parameters

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/forms.inc
Builds a HTML select element with all the currently available patterns formats.
patterns_import_validate in includes/forms/import.inc
patterns_io_scan_directories in includes/io/io.inc
Scan directories looking for patterns files.
patterns_parser_ready in includes/parser/parser.inc
Checks whether there is at least one parser currently enabled.
_patterns_io_file_has_valid_extension in includes/io/io.inc
Checks whether the extension of the specified file name matches one of the currently available parser formats.

File

includes/parser/parser.inc, line 84

Code

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