You are here

function _secure_permissions_message_drush in Secure Permissions 7

Same name and namespace in other branches
  1. 6 includes/secure_permissions.drush.inc \_secure_permissions_message_drush()
  2. 7.2 secure_permissions.drush.inc \_secure_permissions_message_drush()

Send a message to the drush log. Taken from the Backup And Migrate module.

2 calls to _secure_permissions_message_drush()
secure_permissions_drush_rebuild in ./secure_permissions.drush.inc
Callback function for drush secure-permissions-rebuild.
secure_permissions_drush_toggle_active in ./secure_permissions.drush.inc
Callback function for drush secure-permissions.

File

./secure_permissions.drush.inc, line 89
Drush commands for Secure Permissions.

Code

function _secure_permissions_message_drush($message, $replace, $type) {

  // Use drush_log to display to the user.
  drush_log($message, str_replace('status', 'notice', $type));

  // Watchdog log the message as well for admins.
  watchdog('secure_permissions', $message, $replace, $type == 'error' ? WATCHDOG_ERROR : WATCHDOG_NOTICE);
}