You are here

function pm_get_available_modules in Drupal PM (Project Management) 7.3

Same name and namespace in other branches
  1. 8 includes/pm.recommended.inc \pm_get_available_modules()

Helper function to determine all modules available to install.

2 calls to pm_get_available_modules()
pm_recommended_modules_count in includes/pm.recommended.inc
Determines the number of recommended modules, by status.
pm_recommended_modules_table in includes/pm.recommended.inc
Generates a table of recommended modules.

File

includes/pm.recommended.inc, line 111
Recommended modules helper functions.

Code

function pm_get_available_modules() {
  $available_modules = array();
  foreach (system_rebuild_module_data() as $available_module) {
    $name = $available_module->name;
    $available_modules[$name]['status'] = $available_module->status;
  }
  return $available_modules;
}