function views_megarow_access in Views Megarow 7
Access callback. Verify that the user can access the request view.
Parameters
$view_name: Name of the view to check the access to.
$display_id: ID of the display to serve.
Return value
bool Returns TRUE is the user can access the page, FALSE otherwise.
1 string reference to 'views_megarow_access'
- views_megarow_menu in ./
views_megarow.module - Implement hook_menu().
File
- ./
views_megarow.module, line 49
Code
function views_megarow_access($view_name, $display_id) {
$view = views_get_view($view_name);
$view
->set_display($display_id);
return $view
->access(array(
$display_id,
));
}