You are here

function module_iterate in Drupal 6

Same name and namespace in other branches
  1. 4 includes/module.inc \module_iterate()
  2. 5 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);
  }
}