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.js'); } /** * Implements hook_menu(). */ function materio_search_api_ajax_menu() { $items = array(); $base = array( 'type' => MENU_CALLBACK, 'file' => 'materio_search_api_ajax.pages.inc', ); $items['materio_search_api_ajax/search'] = $base+array( 'title' => 'Matrio base ajax', 'page callback' => 'materio_search_api_ajax_search', 'page arguments' => array(2), 'access callback' => TRUE, 'access arguments' => array('use materio search api'), ); $items['materio_search_api_ajax/viewmode/change'] = $base+array( 'page callback' => 'materio_search_api_ajax_viewmode_change', 'page argument' => array(3), 'access arguments' => array('use materio search api viewmode selection'), ); $items['materio_search_api_ajax/actuality'] = $base+array( 'page callback' => 'materio_search_api_ajax_actuality', 'access callback' => TRUE, 'page arguments' => array(2), ); $items['materio_search_api_ajax/node'] = $base+array( 'page callback' => 'materio_search_api_ajax_node', 'access callback' => TRUE, 'page arguments' => array(2), ); return $items; }