You are here

function pm_disable_message in Drupal PM (Project Management) 7.3

Same name and namespace in other branches
  1. 8 includes/pm.install.inc \pm_disable_message()

Sets a standardised message on PM module disable.

10 calls to pm_disable_message()
pmexpense_disable in pmexpense/pmexpense.install
Implements hook_disable().
pmissue_disable in pmissue/pmissue.install
Implements hook_disable().
pmnote_disable in pmnote/pmnote.install
Implements hook_disable().
pmorganization_disable in pmorganization/pmorganization.install
Implements hook_disable().
pmperson_disable in pmperson/pmperson.install
Implements hook_disable().

... See full list

File

includes/pm.install.inc, line 10
Helper functions for install, disable, uninstall and update of PM modules.

Code

function pm_disable_message($module, $entity_name) {
  $module_info = system_get_info('module', $module);
  $message = t('@module_name has been disabled. Fields attached to @entity_name will remain until the module is uninstalled.', array(
    '@module_name' => $module_info['name'],
    '@entity_name' => $entity_name,
  ));
  drupal_set_message($message);
}