Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function template_preprocess(&$variables, $hook) {
- $access_pages = array('dp/admin', 'user/login', 'user/password');
- if (!$variables['is_front'] && !$variables['logged_in'] && !in_array($_GET['q'], $access_pages)) {
- drupal_goto('dp/admin');
- }
- }
Add Comment
Please, Sign In to add comment