You are here

function patterns_db_get_enabled_patterns_array in Patterns 7.2

Same name and namespace in other branches
  1. 7 includes/db.inc \patterns_db_get_enabled_patterns_array()

Returns the array of patterns array that are currently enabled.

It is possible to specify which fields to return with the fields parameter, that can be either a string or an array.

If found, pattern code inside each pattern object is automatically unserialized.

Parameters

mixed $fields Specifies which fields to return.:

1 call to patterns_db_get_enabled_patterns_array()
patterns_io_scan_directories in includes/io/io.inc
Scan directories looking for patterns files.

File

includes/db.inc, line 381
Retrieve, save, and remove patterns from the database.

Code

function patterns_db_get_enabled_patterns_array($fields = array(), $merge = FALSE) {
  $patterns = patterns_db_get_enabled_patterns($fields);
  return _patterns_db_convert_results_set($patterns, $merge);
}