function patterns_db_get_patterns_array in Patterns 7
Same name and namespace in other branches
- 7.2 includes/db.inc \patterns_db_get_patterns_array()
Returns the array of patterns loaded from the database.
It is possible to specify which fields to return with the $fields parameter, that can be either a string or an array of strings.
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_patterns_array()
- patterns_io_scan_directories in includes/
io/ io.inc - Scan directories looking for patterns files.
File
- includes/
db.inc, line 323 - Retrieve, save, and remove patterns from the database.
Code
function patterns_db_get_patterns_array($fields = array(), $merge = FALSE) {
$patterns = patterns_db_get_patterns($fields);
return _patterns_db_convert_results_set($patterns, $merge);
}