function NotificationsContentTests::enableUIPages in Notifications 6.2
Same name and namespace in other branches
- 6 tests/notifications_content.test \NotificationsContentTests::enableUIPages()
- 6.3 tests/notifications_content.test \NotificationsContentTests::enableUIPages()
2 calls to NotificationsContentTests::enableUIPages()
- NotificationsContentTests::testNotificationsContent in tests/
notifications_content.test - Play with creating, retrieving, deleting a pair subscriptions
- NotificationsContentTests::testNotificationsUserPages in tests/
notifications_content.test - Check all user pages before and after enabling permissions
File
- tests/
notifications_content.test, line 29
Class
- NotificationsContentTests
- Class for testing notifications module. Tests basic API functions
Code
function enableUIPages($enable = TRUE) {
$settings = array_keys(notifications_subscription_types());
variable_set('notifications_ui_types', $enable ? $settings : array());
variable_set('notifications_ui_user', $enable ? array(
'page',
'create',
) : array());
}