You are here

function content_menu_assemble_query_string in Content Menu 8

Same name and namespace in other branches
  1. 7 content_menu.menu_admin.inc \content_menu_assemble_query_string()

Assembles a query string with menu item data.

7 calls to content_menu_assemble_query_string()
content_menu_menu_form_handler_existing_view in ./content_menu.menu_admin.inc
Menu add item operation handler for a new menu item to an existing view.
content_menu_menu_form_handler_menu_position_existing in ./content_menu.menu_admin.inc
Menu add item operation handler for a new menu item to existing content.
content_menu_menu_form_handler_menu_position_rule in ./content_menu.menu_admin.inc
Menu add item operation handler for a new generic menu item.
content_menu_menu_form_handler_node in ./content_menu.menu_admin.inc
Menu add item operation handler for a new node menu item.
content_menu_menu_form_handler_url in ./content_menu.menu_admin.inc
Menu add item operation handler for a new generic menu item.

... See full list

File

./content_menu.menu_admin.inc, line 671

Code

function content_menu_assemble_query_string($item) {
  if (empty($item['name']) && isset($item['menu_name'])) {
    $item['name'] = $item['menu_name'];
  }
  $query = array(
    'menu_mlid' => isset($item['mlid']) ? $item['mlid'] : NULL,
    'menu_title' => $item['title'],
    'menu_plid' => $item['plid'],
    'menu_name' => $item['name'],
    'menu_hidden' => $item['hidden'],
    'menu_weight' => $item['weight'],
    'menu_link_path' => isset($item['link_path']) ? $item['link_path'] : NULL,
    'destination' => isset($item['destination']) ? $item['destination'] : 'admin/structure/menu/manage/' . $item['name'],
    //current_path(),
    'msg_buffer' => isset($item['msg_buffer']) ? $item['msg_buffer'] : NULL,
  );
  return $query;
}