function disable_messages_permission in Disable Messages 7
Implements hook_permission().
File
- ./
disable_messages.module, line 43 - The disable_messages module file.
Code
function disable_messages_permission() {
$permission = array(
'view status messages' => array(
'title' => t('View status messages'),
),
'view warning messages' => array(
'title' => t('View warning messages'),
),
'view error messages' => array(
'title' => t('View error messages'),
),
);
if (module_exists('commerce_add_to_cart_confirmation')) {
$permission['view commerce-add-to-cart-confirmation messages'] = array(
'title' => t('View Add to cart confirmation messages'),
);
}
$permission['exclude from message filtering'] = array(
'title' => t('Exclude from message filtering'),
);
return $permission;
}