Files
jeunes-et-engages-d7/sites/all/modules/gui/jeemod/jeemod.module
T
Bachir Soussi Chiadmi 81f57b8f4e BIG BIG BIG update
V0 of first interface
going to refactor JS
2015-03-06 11:40:59 +01:00

33 lines
664 B
Plaintext

<?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,
);
}