You are here

function _panels_page_menu_item in Panels 5.2

Helper function to create a menu item for a panel.

1 call to _panels_page_menu_item()
_panels_page_create_menu_item in panels_page/panels_page.module
Create a menu item for a panel page.

File

panels_page/panels_page.module, line 393
panels_page.module

Code

function _panels_page_menu_item($path, $title, $panel_page, $args, $access, $type, $weight = NULL) {
  $retval = array(
    'path' => $path,
    'title' => $title,
    'callback' => 'panels_page_view_page',
    'callback arguments' => $args,
    'access' => user_access('access content') && $access,
    'type' => $type,
  );
  if ($weight !== NULL) {
    $retval['weight'] = $weight;
  }
  return $retval;
}