You are here

function entity_menu_links_parent_properties in Entity menu links 7

Returns an array of all the parent properties for menu_links Eg. array('plid', 'p1', 'p2', 'p3' etc...) based on the MENU_MAX_DEPTH constant defined in menu.inc

3 calls to entity_menu_links_parent_properties()
entity_menu_links_entity_dependencies in ./entity_menu_links.module
Implements hook_entity_dependencies().
entity_menu_links_entity_uuid_load in ./entity_menu_links.module
Implements hook_entity_uuid_load().
entity_menu_links_entity_uuid_presave in ./entity_menu_links.module
Implements hook_entity_uuid_presave().

File

./entity_menu_links.module, line 197
Entity menu link module

Code

function entity_menu_links_parent_properties() {
  $i = 0;
  $properties = array(
    'plid',
  );
  while ($i++ < MENU_MAX_DEPTH) {
    $properties[] = "p{$i}";
  }
  return $properties;
}