In developing Acidfree for Drupal 5.0, I decided to use the Video and Image modules rather than define custom Acidfree node types. While this is a major rewrite and lots of work for me, I think it is good for the community at large. In doing so, I found that the Video module was not quite up to date with HEAD (with reason since HEAD has been changing daily). But here is the patch that I have come up with to simply update it.
In reviewing it, there may be some things that I cut out that I shouldn't have, but I wasn't sure how to deal with them. hook_link has changed so it is more like the primary_links, which rather than just returning a html string with links, it returns an array of arrays that have href, title, attributes, etc. So hook_links was heavily modified. I think most of the other stuff is fairly straight forward if you read the updating from 4.7 to HEAD guide.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | video_updates_to_head.patch_3.txt | 14.04 KB | vhmauery |
| #9 | video_updates_to_head.patch_2.txt | 12.96 KB | vhmauery |
| #5 | video_updates_to_head.patch_1.txt | 13.64 KB | vhmauery |
| #2 | video_updates_to_head.patch_0.txt | 14.66 KB | vhmauery |
| video_updates_to_head.patch.txt | 6.87 KB | vhmauery |
Comments
Comment #1
vhmauery commentedI just realized that there are still some things missing here... I forgot to update all the plugin modules and also to add the .info files for each module. I will try to get a patch for that soon. :)
Comment #2
vhmauery commentedOkay, here is a more updated patch. It includes all the .info files needed for HEAD. I haven't actually tested all the files, but you get the idea.
Comment #3
eagereyes commentedHi, not trying to hijack your thread, but I'd be very interested in what changes you are planning for the 5.0 version of acidfree. I think image handling is really the one weak point of Drupal, and acidfree is a great step in the right direction - but a few more things could be done. Also, including lightbox to work with acidfree would be excellent. So if you have any pointers to webpages etc., I'd be interested.
Comment #4
vhmauery commentedeagereyes,
I wrote up a page on what I am planning to do at http://drupal.org/node/82267 and welcome comments. As for lightbox, if it works with Image module, it should work with the new Acidfree.
Comment #5
vhmauery commentedOk, I guess I did something stupid on my last rev because it didn't seem to apply to CVS. I just updated and got a clean checkout of CVS and applied this patch and it worked for me. This patch is probably the most important (from my standpoint) of all the patches I am pushing at Video. This patch brings Video and all the plugins up to date with Drupal HEAD. All my other patches depend on this patch (and as such will not apply until this one has been applied.)
Please apply.
Comment #6
fax8 commentedI finally branched with DRUPAL-4.7 the current video module version.
This means that for now on we will work for the next drupal 5.0 .
I tryed this patch. These are my first impressions:
configuration links: you used capitalized links in administration menu items (Video customfields settings, Video settings) while the all other links are lowercase. please change to lowercase.
configuration links location: you put video module configuration under site configuration.
In the conversion guide:
then IMHO we should use admin/content not admin/settings
configuration links grouping: I would like if video related modules could create a grouping (like at admin/settings) defining the default place to find video modules. When a user go to admin/content/video a page listing all video_* modules is displayed and then he can choose the plugin to configure eg admin/content/video/multidownload
video type description: There is no description at "admin/content/types" for video node type.
I continue trying this patch. I will report here something else.
Comment #7
fax8 commentedVideo_upload settings page seems broken:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'video_upload_admin_settings' was given in /home/fabio/web-related/CMS/drupal/cvs/drupal/includes/form.inc on line 181.
Comment #8
vhmauery commentedAs per #6, I will try to reroll a patch that fixes those.
As per #7, hmmm. I think that may have been because I removed the video_upload settings page with the patch from http://drupal.org/node/82396
I guess I should fix it here and remove it with that one. I will fix that in the next rev too.
Comment #9
vhmauery commentedFabio,
Okay, here is a new patch with the items from comments 6 and 7 fixed. This also caused a change to the video types patch at http://drupal.org/node/82396
Comment #10
fax8 commentedVernon,
I think there are some problems with this patch...
Maybe you sent a old version?
Fabio
Comment #11
vhmauery commentedNo, it wasn't an old version -- it worked just fine on my CVS drupal setup. Did you refresh the menu cache after you tried it? Anyway, those functions don't have to be called whatever_settings anyway, so I renamed them to whatever_settings_form. So now it should work for you. But make sure you refresh the menu cache (just hit 'Save configuration' on the admin/settings/module page).
So here is a new version. So there is also a new version of the video types patch like last time.
Comment #12
vhmauery commentedComment #13
fax8 commentedOk. Really a good work.
Committed to cvs. Thanks.
Fabio
Comment #14
fax8 commentedplease note that I made little modification to menu links of plugins modules.
I simply called them as eg "upload" instead of "video upload settings" which
was redundant with the general "video settings" link.
Comment #15
(not verified) commented