function fp_rebuild_modules_list

7.x db.inc fp_rebuild_modules_list($reinclude = TRUE)
6.x db.inc fp_rebuild_modules_list($reinclude = TRUE)
4.x db.inc fp_rebuild_modules_list($reinclude = TRUE)
5.x db.inc fp_rebuild_modules_list($reinclude = TRUE)

Re-query the modules table and re-add to our global array.

1 call to fp_rebuild_modules_list()
system_modules_form_submit in modules/system/system.module
Submit handler for the modules form.

File

includes/db.inc, line 632
This file contains mostly db shortcuts.

Code

function fp_rebuild_modules_list($reinclude = TRUE) {
  unset($GLOBALS ["fp_system_settings"]["modules"]);

  $res = db_query("SELECT * FROM modules WHERE enabled = 1
                      ORDER BY weight");
  while ($cur = db_fetch_array($res)) {

    $GLOBALS ["fp_system_settings"]["modules"][$cur ["name"]] = $cur;

    if ($reinclude) {
      include_module($cur ["name"], FALSE);
    }

  }


}