
- added materio_user.module (add permission to view the profile page) - materio_serach_api.pages : limit actu items for anonymous - materio_search_api_ajax.pages & materio_flag.pages : redirect to real page if current page not corresponding on ajax request (solve the view mode block visibility on user edit profile page) - materio_flag : added edit lists functionalities ++ get_list_page_title func Signed-off-by: bachy <git@g-u-i.net>
65 lines
1.8 KiB
Plaintext
65 lines
1.8 KiB
Plaintext
<?php
|
|
/**
|
|
* @file
|
|
* This is the file description for materio_search_api_ajax module.
|
|
*
|
|
* In this more verbose, multi-line description, you can specify what this
|
|
* file does exactly. Make sure to wrap your documentation in column 78 so
|
|
* that the file can be displayed nicely in default-sized consoles.
|
|
*/
|
|
|
|
/**
|
|
* Implements hook_init().
|
|
*/
|
|
function materio_search_api_ajax_init() {
|
|
if (module_exists('locale')) {
|
|
$languages = language_list('enabled');
|
|
}
|
|
|
|
drupal_add_js(array('materio_search_api_ajax' => array(
|
|
'module_path' => drupal_get_path('module', 'materio_search_api_ajax'),
|
|
// 'strings'=>array(
|
|
// 'sitetitle'=>,
|
|
// 'siteslogan'=>,
|
|
// ),
|
|
'languages' => isset($languages) ? $languages[1] : array(),
|
|
)), 'setting');
|
|
|
|
drupal_add_js(drupal_get_path('module', 'materio_search_api_ajax').'/js/materio_search_api_ajax-ck.js');
|
|
}
|
|
|
|
/**
|
|
* Implements hook_menu().
|
|
*/
|
|
function materio_search_api_ajax_menu() {
|
|
$items = array();
|
|
|
|
$base = array(
|
|
'type' => MENU_CALLBACK,
|
|
'file' => 'materio_search_api_ajax.pages.inc',
|
|
'access arguments' => array('use materio search api'),
|
|
);
|
|
|
|
$items['materio_search_api_ajax/search/%'] = $base+array(
|
|
'title' => 'Matrio base ajax',
|
|
'page callback' => 'materio_search_api_ajax_search',
|
|
'page arguments' => array(2,3),
|
|
'access callback' => TRUE,
|
|
);
|
|
|
|
$items['materio_search_api_ajax/viewmode/change'] = $base+array(
|
|
'page callback' => 'materio_search_api_ajax_viewmode_change',
|
|
'page argument' => array(3),
|
|
);
|
|
|
|
$items['materio_search_api_ajax/actuality'] = array(
|
|
'type' => MENU_CALLBACK,
|
|
'file' => 'materio_search_api_ajax.pages.inc',
|
|
'page callback' => 'materio_search_api_ajax_actuality',
|
|
'access callback' => TRUE,
|
|
'page arguments' => array(2),
|
|
);
|
|
|
|
return $items;
|
|
}
|