function notifications_multiple_delete_confirm_validate in Notifications 6
Same name and namespace in other branches
- 6.4 notifications.manage.inc \notifications_multiple_delete_confirm_validate()
- 6.2 notifications.manage.inc \notifications_multiple_delete_confirm_validate()
- 6.3 notifications.manage.inc \notifications_multiple_delete_confirm_validate()
- 7 notifications.pages.inc \notifications_multiple_delete_confirm_validate()
Validate permissions to delete all the subscriptions
1 string reference to 'notifications_multiple_delete_confirm_validate'
- notifications_multiple_delete_confirm in ./
notifications.manage.inc - Form for multiple delete. When account passed check that all subscriptions belong to the user account
File
- ./
notifications.manage.inc, line 360 - Common functions for bulk management of subscriptions
Code
function notifications_multiple_delete_confirm_validate($form, &$form_state) {
if (!notifications_manage_subscriptions_access(array_keys($form_state['values']['items']))) {
form_set_error('', t('You don\'t have permission to manage all these subscriptions'));
}
}