123456789101112131415161718192021222324252627282930313233 |
- <?php
- /**
- * Implements hook_menu().
- */
- function jeemod_menu() {
- $items = array();
- $base = array(
- 'type' => MENU_CALLBACK,
- 'file' => 'jeemod.pages.inc',
- );
- $items['jee/chapter'] = $base+array(
- 'title' => 'Matrio base ajax',
- 'page callback' => 'jeemod_chapter',
- 'page arguments' => array(2),
- 'access callback' => TRUE,
- // 'access arguments' => array('use materio search api'),
- );
- return $items;
- }
- /**
- * Implements hook_entity_info_alter().
- */
- function jeemod_entity_info_alter(&$entity_info) {
- $entity_info['node']['view modes']['chapter'] = array(
- 'label' => t('chapter'),
- 'custom settings' => TRUE,
- );
- }
|