mysite_plugin_failure

Definition

mysite_plugin_failure($type, $key)
mysite.module, line 3439

Description

Error handling if a plugin is missing. This is a bare bones user error message.

Parameters

$type The type of plugin (theme, layout, type, and so forth).

$key The name of the include that failed to load.

Code

function mysite_plugin_failure($type, $key) {
  drupal_set_message(t('<p>The options you have chosen are no longer available.  Please <a href="@url">edit your settings</a>.</p><p>If the problem continues, please contact the site administrator at <b>@mail</b>.</p>', array('@url' => 'mysite/'. arg(1) .'/edit', '@mail' => variable_get('site_mail', NULL))), 'error');
  print theme('page', '');
}