function patterns_io_list_components_dirs in Patterns 7
Same name and namespace in other branches
- 7.2 includes/io/io.inc \patterns_io_list_components_dirs()
Returns a list of all the directories containing Patterns components.
Parameters
bool $reset (optional) If TRUE, forces to: reload the directory index.
File
- includes/
io/ io.inc, line 581 - Functions related to input/output operations.
Code
function patterns_io_list_components_dirs($reset = FALSE) {
$components_dirs =& drupal_static(__FUNCTION__);
if (isset($components_dirs) && !$reset) {
return $components_dirs;
}
// Get list of directories to scan for components.
return module_invoke_all('patterns_components');
}