function hook_system_info_alter


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 system.api.php hook_system_info_alter(&$info, $file, $type)
cle7 system.api.php hook_system_info_alter(&$info, $file, $type)
elmsmedia7 system.api.php hook_system_info_alter(&$info, $file, $type)
icor7 system.api.php hook_system_info_alter(&$info, $file, $type)
meedjum_blog7 system.api.php hook_system_info_alter(&$info, $file, $type)
mooc7 system.api.php hook_system_info_alter(&$info, $file, $type)

Alter the information parsed from module and theme .info files

This hook is invoked in _system_rebuild_module_data() and in _system_rebuild_theme_data(). A module may implement this hook in order to add to or alter the data generated by reading the .info file with drupal_parse_info_file().


$info: The .info file contents, passed by reference so that it can be altered.

$file: Full information about the module or theme, including $file->name, and $file->filename

$type: Either 'module' or 'theme', depending on the type of .info file that was passed.

Related topics

13 functions implement hook_system_info_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

admin_menu_system_info_alter in sites/all/modules/ulmus/admin_menu/admin_menu.module
Implements hook_system_info_alter().
advagg_system_info_alter in sites/all/modules/ulmus/advagg/advagg.module
Implements hook_system_info_alter().
dashboard_system_info_alter in modules/dashboard/dashboard.module
Implements hook_system_info_alter().
field_system_info_alter in modules/field/field.module
Implements hook_system_info_alter().
module_test_system_info_alter in modules/simpletest/tests/module_test.module
Implements hook_system_info_alter().

... See full list

2 invocations of hook_system_info_alter()
_system_rebuild_module_data in modules/system/system.module
Helper function to scan and collect module .info data.
_system_rebuild_theme_data in modules/system/system.module
Helper function to scan and collect theme .info data and their engines.


modules/system/system.api.php, line 2057
Hooks provided by Drupal core and the System module.


function hook_system_info_alter(&$info, $file, $type) {
  // Only fill this in if the .info file does not define a 'datestamp'.
  if (empty($info['datestamp'])) {
    $info['datestamp'] = filemtime($file->filename);



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.