You are here

function scald_form_system_modules_alter in Scald: Media Management made easy 6

Implementation of hook_form_FORM_ID_alter().

In order to get a function to fire when modules are enabled or disabled, one is forced to alter the System Modules form (what appears on /admin/build/modules) and hijack the execution stream that way.

NOTE: This technique probably will fail if modules are installed in an install profile or using drush. Such installation routines should be sure to invoke scald_update_providers() themselves.

File

./scald.module, line 2650

Code

function scald_form_system_modules_alter(&$form, &$form_state) {
  $form['#submit'][] = 'scald_update_providers';
}