Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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!
Comment | File | Size | Author |
---|---|---|---|
#3 | taxonomy_dhtml_1.module | 9.8 KB | Patrick Nelson |
#2 | taxonomy_dhtml_0.module | 9.97 KB | Patrick Nelson |
#1 | taxonomy_dhtml.module | 9.97 KB | Patrick Nelson |
Comments
Comment #1
Patrick Nelson CreditAttribution: Patrick Nelson commentedHere 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.
Comment #2
Patrick Nelson CreditAttribution: Patrick Nelson commentedSorry, missed an 'array2object'. New file attached.
Comment #3
Patrick Nelson CreditAttribution: Patrick Nelson commentedSorry, really am having one of those days. Properly updated module now attached.
Comment #4
andykemp CreditAttribution: andykemp commentedThis 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?
Comment #5
Patrick Nelson CreditAttribution: Patrick Nelson commentedI'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
Comment #6
rickvug CreditAttribution: rickvug commentedAny 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
Comment #7
hadishon CreditAttribution: hadishon commented+1 for completing this for 4.7.
I would greatly appreciate if someone could complete the work on this.
Comment #8
hadishon CreditAttribution: hadishon commentedI'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.
Comment #9
Ian Ward CreditAttribution: Ian Ward commentedhmm, 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
Comment #10
Ian Ward CreditAttribution: Ian Ward commentedI've patched and branched this for 4.7 as per this patch http://drupal.org/node/56900
Ian
Comment #11
(not verified) CreditAttribution: commented