}
}
+ /**
+ * @inheritDoc
+ */
+ public function getModules() {
+ $modules = array();
+
+ $module_data = system_rebuild_module_data();
+ foreach ($module_data as $module_name => $extension) {
+ if (!isset($extension->info['hidden']) && $extension->origin != 'core') {
+ $extension->schema_version = drupal_get_installed_schema_version($module_name);
+ $modules[] = new CRM_Core_Module('drupal.' . $module_name, ($extension->status == 1 ? TRUE : FALSE));
+ }
+ }
+ return $modules;
+ }
+
}