Please, help make this compatible with Drupal 4.7.. It almost seems to work "AS-IS." However, the settings cannot be accessed due to the new forms API, and there may be other issues with updated hooks. According to the form_updater module, it looks like there are only a few things to change with the forms api:
From 4.6

form_select(t("Omitted vocabularies"), "taxonomy_dhtml_overview_vocab", variable_get("taxonomy_dhtml_overview_vocab", array()), $select, t("Select vocabularies which should be <b>omitted</b> from listings."), "", 1); 

to 4.7

$form["taxonomy_dhtml_overview_vocab"] = array(
  '#type' => 'select',
  '#title' => t("Omitted vocabularies"),
  '#default_value' => variable_get("taxonomy_dhtml_overview_vocab", array()),
  '#options' => $select,
  '#description' => t("Select vocabularies which should be <b>omitted</b> from listings."),
  '#extra' => "",
  '#multiple' => 1,
);

and
from 4.6

form_textfield("Number of items", "taxonomy_dhtml_overview_count", variable_get("taxonomy_dhtml_overview_count", 50), 3, 3, t("The number of items to display per vocabulary in the overview page."));

to 4.7

$form["taxonomy_dhtml_overview_count"] = array(
  '#type' => 'textfield',
  '#title' => "Number of items",
  '#default_value' => variable_get("taxonomy_dhtml_overview_count", 50),
  '#size' => 3,
  '#maxlength' => 3,
  '#description' => t("The number of items to display per vocabulary in the overview page."),
);

This doesn't seem to help much, but it might be a start. I tried to update the module completely, but something in my efforts fell short. I hope someone else can carry on the effort. Thanks in advanced!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Patrick Nelson’s picture

Status: Active » Reviewed & tested by the community
FileSize
9.97 KB

Here you go, fixed.

Sorry that this is the whole module file but I can't create patches and I don't have CSV access or whatever it's called.

Patrick Nelson’s picture

FileSize
9.97 KB

Sorry, missed an 'array2object'. New file attached.

Patrick Nelson’s picture

FileSize
9.8 KB

Sorry, really am having one of those days. Properly updated module now attached.

andykemp’s picture

This worked with Beta 2,but doesn't seem to work anymore...

I still get the page and the menus but they no longer expand the just take me straight to the catergory page... Any ideas?

Patrick Nelson’s picture

I'm going to try and take a look at this over the next few days and will post up a revised version as soon as possible.

Any help from anyone else would be greatly appreciated - especially someone who can actually post patches!

Regards

Patrick

rickvug’s picture

Any word on this patch? I know that I would love to use this for a current 4.7 project. Then again, I can't say much as I'm fairly useless with php and drupal programming at the moment. Thanks for the hard work.

Rick

hadishon’s picture

Status: Reviewed & tested by the community » Needs work

+1 for completing this for 4.7.

I would greatly appreciate if someone could complete the work on this.

hadishon’s picture

I've been testing the posted changed module above. Everything seems to work except for the DHTML and the expandable menues...

The url's produced by the module for the js and images is wrong.

I'm not sure how to fix this.

Ian Ward’s picture

hmm, not sure how i totally missed this til now, and i was even trying to not double any work...darn. I have the dhtml working with this patch here, as well as everything else i believe - http://drupal.org/node/56900

Though, I am not very sure I added the js properly using addLoadEvent, so take a look.

Sorry I missed this,

Ian

Ian Ward’s picture

Assigned: Unassigned » Ian Ward
Status: Needs work » Fixed

I've patched and branched this for 4.7 as per this patch http://drupal.org/node/56900

Ian

Anonymous’s picture

Status: Fixed » Closed (fixed)