You are here

function _views_navigation_get_id_key in Views navigation 7

Function to get the id of the entity key.

Parameters

string $entity_type: The entity type.

Return value

int The id of the entity key.

5 calls to _views_navigation_get_id_key()
views_navigation_get_result in ./views_navigation.inc
Get the result of a query, as an array of etids keyed by position.
views_navigation_handler_field_field::render_item in views/views_navigation_handler_field_field.inc
Implements function render_item().
_views_navigation_build_query in ./views_navigation.inc
Add the query parameters to append to the entity url.
_views_navigation_render_entity_link in ./views_navigation.inc
Based on EntityFieldHandlerHelper::render_entity_link().
_views_navigation_replace_href_in_html in ./views_navigation.inc
Helper function to replace the links in HTML.

File

./views_navigation.inc, line 470
Views navigation main include file.

Code

function _views_navigation_get_id_key($entity_type) {
  $info = entity_get_info($entity_type);
  return $info['entity keys']['id'];
}