function responsive_preview_access in Responsive Theme Preview 7
Prevents the preview tab from rendering on administration pages.
1 call to responsive_preview_access()
- responsive_preview_navbar in ./
responsive_preview.module - Implements hook_navbar().
File
- ./
responsive_preview.module, line 146 - Provides a component that previews the a page in various device dimensions.
Code
function responsive_preview_access() {
return !path_is_admin(current_path());
}