You are here

public function FlexiformDisplayUserCategory::hook_menu_alter in Flexiform 7

Define the menu links

File

includes/display/user_category.display.inc, line 15
Define Display plugin for the add page.

Class

FlexiformDisplayUserCategory
Class for add page displays.

Code

public function hook_menu_alter(&$items) {
  $path = 'user/%user_category/edit/' . $this->configuration['category'];
  $items[$path]['page callback'] = 'flexiform_page_wrapper';
  $items[$path]['page arguments'] = array(
    $this
      ->getFlexiform()->form,
    get_class($this),
    1,
  );
  $items[$path]['access callback'] = 'flexiform_user_category_access';
  $items[$path]['access arguments'] = array(
    $this
      ->getFlexiform()->form,
    get_class($this),
    1,
  );
  $items[$path]['module'] = 'flexiform';
  $items[$path]['file'] = 'flexiform.pages.inc';
  $items[$path]['weight'] = isset($this->configuration['weight']) ? $this->configuration['weight'] : 0;
}