You are here

function _publishcontent_get_menutype in Publish Content 7

Helper function for hook_menu to get the menu type for the current setup.

1 call to _publishcontent_get_menutype()
publishcontent_menu in ./publishcontent.module
Implements hook_menu().

File

./publishcontent.module, line 529
Add link to publish or unpublish a node, with access control based on the node type

Code

function _publishcontent_get_menutype() {
  $method = _publishcontent_get_method();
  $menu_type = MENU_CALLBACK;
  if ($method == PUBLISHCONTENT_METHOD_TABS) {
    $menu_type = MENU_LOCAL_TASK;
  }
  elseif ($method == PUBLISHCONTENT_METHOD_ACTION_LINKS) {
    $menu_type = MENU_LOCAL_ACTION;
  }
  return $menu_type;
}