You are here

function _roleassign_install_message in RoleAssign 5

2 calls to _roleassign_install_message()
roleassign_uninstall in ./roleassign.install
Implementation of hook_uninstall().
roleassign_update_1 in ./roleassign.install
Implementation of hook_update_1(). Removes data stored by misstake in the data column of the user table. Thank you hunmonk for pointing this out.

File

./roleassign.install, line 53

Code

function _roleassign_install_message($message = '', $result = NULL) {
  static $success = true;
  if (isset($result)) {
    if (!$result) {
      drupal_set_message($message, 'error');
      $success = false;
    }
  }
  elseif ($success) {
    drupal_set_message($message);
  }
}