BIG BIG BIG update
V0 of first interface going to refactor JS
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?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,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user