You are here

function defaultcontent_menu in Default Content 7

Same name and namespace in other branches
  1. 7.2 defaultcontent.module \defaultcontent_menu()

Implements hook_menu().

We are implementing the same functions as a node page but with a machine name url

NOTE: this was mainly done before we had the menu plugin and now is most likely not used this page can cause issue for breadcrumbs that is why this method was abandoned

File

./defaultcontent.module, line 84
Module file for the Default content module which allow export and import of default content in a Drupal site.

Code

function defaultcontent_menu() {
  $items = array();
  $items['node-name/%'] = array(
    'page callback' => 'defaultcontent_page_view',
    'page arguments' => array(
      1,
    ),
    'access callback' => TRUE,
  );
  return $items;
}