module_iterate

Versions
4.6 – 6
module_iterate($function, $argument = '')

Call a function repeatedly with each module in turn as an argument.

Code

includes/module.inc, line 20

<?php
function module_iterate($function, $argument = '') {
  foreach (module_list() as $name) {
    $function($name, $argument);
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.