Loading views_megarow.module +19 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,8 @@ function views_megarow_menu() { $items['views_megarow/refresh/%/%/%'] = array( 'page callback' => 'views_megarow_get_row', 'page arguments' => array(2, 3, 4), 'access arguments' => array('access content'), 'access callback' => 'views_megarow_access', 'access arguments' => array(2, 3), 'type' => MENU_CALLBACK, ); Loading @@ -34,6 +35,23 @@ function views_megarow_menu() { return $items; } /** * Access callback. Verify that the user can access the request view. * * @param $view_name * Name of the view to check the access to. * @param $display_id * ID of the display to serve. * * @return bool * Returns TRUE is the user can access the page, FALSE otherwise. */ 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)); } /** * Determine which theme should be used to render the megarow. * Loading Loading
views_megarow.module +19 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,8 @@ function views_megarow_menu() { $items['views_megarow/refresh/%/%/%'] = array( 'page callback' => 'views_megarow_get_row', 'page arguments' => array(2, 3, 4), 'access arguments' => array('access content'), 'access callback' => 'views_megarow_access', 'access arguments' => array(2, 3), 'type' => MENU_CALLBACK, ); Loading @@ -34,6 +35,23 @@ function views_megarow_menu() { return $items; } /** * Access callback. Verify that the user can access the request view. * * @param $view_name * Name of the view to check the access to. * @param $display_id * ID of the display to serve. * * @return bool * Returns TRUE is the user can access the page, FALSE otherwise. */ 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)); } /** * Determine which theme should be used to render the megarow. * Loading