function patterns_io_list_components_names in Patterns 7
Same name and namespace in other branches
- 7.2 includes/io/io.inc \patterns_io_list_components_names()
Returns a list with the names of the components.
Parameters
bool $reset (optional) If TRUE, always forces reloading: the components from the file system. Defaults FALSE
Return value
array Array containing the names of the patterns components
See also
2 calls to patterns_io_list_components_names()
- drush_patterns_components in ./
patterns.drush.inc - List of patterns path command callback.
- patterns_drush_filter_components in ./
patterns.drush.inc - Validate, and filters user input for export components
File
- includes/
io/ io.inc, line 554 - Functions related to input/output operations.
Code
function patterns_io_list_components_names($reset = FALSE) {
$components = patterns_io_load_components($reset, TRUE);
$func = create_function('$c', 'return pathinfo($c, PATHINFO_FILENAME);');
return array_map($func, $components);
}