You are here

protected function FlexiformDisplayEditPage::getBaseIdPosition in Flexiform 7

Retrieve the position of the base id in the menu path.

Return value

int|FALSE

2 calls to FlexiformDisplayEditPage::getBaseIdPosition()
FlexiformDisplayEditPage::getMenuArguments in includes/display/edit_page.display.inc
Get the page/title arguments for hook_menu.
FlexiformDisplayEditPage::hook_menu in includes/display/edit_page.display.inc
Define the menu links

File

includes/display/edit_page.display.inc, line 24
Define Display plugin for the add page.

Class

FlexiformDisplayEditPage
Class for add page displays.

Code

protected function getBaseIdPosition() {

  // Assume the first wildcard is the base id position.
  if (!isset($this->base_id_position)) {
    $path_bits = explode('/', $this->configuration['path']);
    $this->base_id_position = array_search('%', $path_bits);
  }
  return $this->base_id_position;
}