Return an associative array of files within one or more modules.
public static files ( $module_name = NULL, $module_folder = NULL ) : array | ||
$module_name | string If not null, will return only files from that module. | |
$module_folder | string If not null, will return only files within that sub-folder of each module (ie 'views'). | |
Результат | array | An associative array, like:
array(
'module_name' => array(
'folder' => array('file1', 'file2')
)
) |