function module_iterate in Drupal 5
Same name and namespace in other branches
- 4 includes/module.inc \module_iterate()
- 6 includes/module.inc \module_iterate()
Call a function repeatedly with each module in turn as an argument.
File
- includes/
module.inc, line 20 - API for loading and interacting with Drupal modules.
Code
function module_iterate($function, $argument = '') {
foreach (module_list() as $name) {
$function($name, $argument);
}
}