function _secure_permissions_message_drush in Secure Permissions 6
Same name and namespace in other branches
- 7.2 secure_permissions.drush.inc \_secure_permissions_message_drush()
- 7 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 includes/
secure_permissions.drush.inc - Callback function for drush rebuild-perms.
- secure_permissions_drush_toggle_active in includes/
secure_permissions.drush.inc - Callback function for drush sec-perms.
File
- includes/
secure_permissions.drush.inc, line 94 - 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('sec_perms', $message, $replace, $type == 'error' ? WATCHDOG_ERROR : WATCHDOG_NOTICE);
}