* Implements hook_menu()
*/
function mkdru_menu() {
+ // Can't get tabbed menus to work in D6. The children work and the tabs
+ // show up there but the top level's url results in it trying to find
+ // the system module's system.inc in mkdru's directory
+// $items['admin/settings/mkdru'] = array(
+// 'title' => 'Pazpar2 Metasearch Settings',
+// 'description' => 'Settings for mkdru.',
+// 'access arguments' => array('administer site configuration'),
+// );
+// $items['admin/settings/mkdru/settings'] = array(
+// 'title' => 'Settings',
+// 'description' => 'Settings for mkdru.',
+// 'page callback' => 'drupal_get_form',
+// 'page arguments' => array('mkdru_admin_settings'),
+// 'type' => MENU_DEFAULT_LOCAL_TASK,
+// 'file' => 'mkdru.admin.inc',
+// 'weight' => 0,
+// );
+// $items['admin/settings/mkdru/ding'] = array(
+// 'title' => 'Ding Integration',
+// 'description' => 'Search settings for mkdru instance integrated into Ding.',
+// 'page callback' => 'drupal_get_form',
+// 'page arguments' => array('mkdru_ding_settings'),
+// 'type' => MENU_LOCAL_TASK,
+// 'weight' => 1,
+// );
$items['admin/settings/mkdru'] = array(
'title' => 'Pazpar2 Metasearch Settings',
'description' => 'Settings for mkdru.',
}
function mkdru_add_facet_submit($form, &$form_state) {
-// $newfacet = $form_state['values']['new_facet']['canonical'];
- $newfacet = 'PFUI';
+ $newfacet = $form_state['values']['new_facet']['canonical'];
$form_state['values']['settings']['facets'][$newfacet] = NULL;
$form_state['rebuild'] = TRUE;
return $form_state['values'];