function module_iterate in Drupal 4
Same name and namespace in other branches
- 5 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);
}
}