function readonlymode_perm in Read only mode 6
Implementation of hook_perm(). Create permission to allow access to forms while in read only mode
File
- ./
readonlymode.module, line 20 - Read Only Mode provides an alternate to the built in 'Maintenance Mode' in Drupal. Instead of displaying a static text file to users while the site is in maintenance mode, Read Only Mode will allow access (reading) of new content while…
Code
function readonlymode_perm() {
return array(
'readonlymode access forms',
);
}