function example_drupal_system_listing in Coder 7
Same name and namespace in other branches
- 7.2 coder_upgrade/tests/old/samples/example.module \example_drupal_system_listing()
File
- coder_upgrade/
tests/ old/ samples/ example.module, line 1837
Code
function example_drupal_system_listing() {
// drupal_system_listing() -- Change the next line but leave this alone
// Get current list of modules
$files = drupal_system_listing('\\.module$', 'modules', 'name', 0);
// Respect the quote type (single or double)
$files = drupal_system_listing("\\.module\$", 'modules', 'name', 0);
// Attempt to change $mask
$mask = '\\.module$';
$files = drupal_system_listing($mask, 'modules', 'name', 0);
}