From 3a8afed1034f596f553f0caafbf54c1588f97ac3 Mon Sep 17 00:00:00 2001 From: Jason Skomorowski Date: Tue, 29 Mar 2011 04:52:48 +0000 Subject: [PATCH] Nearly working tabbed menu commented out for future use. --- mkdru.module | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/mkdru.module b/mkdru.module index 9185042..d988da7 100644 --- a/mkdru.module +++ b/mkdru.module @@ -71,6 +71,31 @@ function mkdru_access($op, $node, $account) { * 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.', @@ -237,8 +262,7 @@ function mkdru_settings_form(&$form_state) { } 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']; -- 1.7.10.4