You are here

function scald_admin_provider_reregister in Scald: Media Management made easy 6

Forces a Scald Provider to re-register with Scald Core, potentially previously-unknown Provisions.

Return value

None. Forwards to Admin Dashboard.

1 string reference to 'scald_admin_provider_reregister'
scald_menu in ./scald.module
Implementation of hook_menu().

File

./scald.admin.inc, line 48

Code

function scald_admin_provider_reregister($provider) {
  if (_scald_register_provider($provider, module_invoke($provider, 'scald_provider'), TRUE)) {
    drupal_set_message(t('Successfuly re-registered Scald Provider %provider', array(
      '%provider' => $provider . '.module',
    )));
  }
  else {
    drupal_set_message(t('Re-registering Scald Provider %provider failed.', array(
      '%provider' => $provider . '.module',
    )), 'error');
  }
  scald_config_rebuild();
  drupal_goto('admin/content/scald');
}