Port to 6

reikiman - February 16, 2008 - 19:33
Project:Taxonomy Multi Editor
Version:HEAD
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Hmm, I didn't realize this had died. Anyway I ran coder (code review) and it guided for a few changes. There are still some issues as follows. Dunno if anybody will be there to pick this up.

Line 81: new hook_theme() function is required to register theme_ functions (Drupal Docs)
function theme_taxonomy_multi_edit_overview(&$form) {

severity: critical Line 17: The menu system has been completely over-hauled in 6.x. (Drupal Docs)
  if ($may_cache) {

severity: critical Line 18: The menu system has been completely over-hauled in 6.x. (Drupal Docs)
    $items[] = array('path' => 'admin/content/node/taxonomy_multi_edit', 'title' => t('assign categories'),

severity: critical Line 57: hook_form_alter() parameters have changed (Drupal Docs)
    taxonomy_form_alter($fakeform, array(), $node->type .'_node_form');

severity: critical Line 130: hook_form_alter() parameters have changed (Drupal Docs)
    taxonomy_multi_edit_content_form_alter($form, array(), $form_id);

severity: critical Line 156: $form['#submit'] and $form['#validate'] no longer support custom parameters
  $form['#submit']['taxonomy_multi_edit_content_form_submit'] = array();   

severity: critical Line 175: taxonomy_node_get_terms(), taxonomy_node_get_terms_by_vocabulary(), and taxonomy_node_delete() now take a full $node object, not just a nid (node id). (Drupal Docs)
        $existing = taxonomy_node_get_terms($nid);

AttachmentSize
taxonomy_multi_edit.diff7.14 KB

#1

messenger - April 13, 2008 - 20:05

I would also like to see this module get ported D6.
I didn't realize how much I depended on it until I started prepping a site to upgrade and kept using it to clean up some categories and nodes.

#2

Yoran - May 25, 2008 - 07:54

Ok, stupid me, I didn't see your post and spent time to port it myself. Anyway I put my patch here, perhaps this will help in some ways.

I didn't know about "code review", any link ?

AttachmentSize
taxonomy_multi_edit.patch 7.5 KB

#3

messenger - June 13, 2008 - 06:59
Title:Port to drupal 6.0» Coder module

http://drupal.org/project/coder
Though you may have found it by now :).

#4

Yoran - July 12, 2008 - 08:20

Yes I did, but thank you for the idea, it is VERRRY useful !!

#5

messenger - July 27, 2008 - 22:57
Title:Coder module» Port to 6

my bad
somehow changed the title, putting it back

#6

choster - September 8, 2008 - 03:46
Version:5.x-1.0» HEAD

Another request at http://drupal.org/node/298607 .

#7

andypost - October 19, 2008 - 18:08

subscribe

#8

dman - November 18, 2008 - 08:25
Status:active» fixed

The patches here didn't seem to solve the content admin 'node operations' selector (which was admittedly tricky), so I did a full rewrite for D6.
Release now up!
http://drupal.org/node/335758

#9

andypost - November 19, 2008 - 05:28
Status:fixed» needs review

Menu titles and descriptions have internal translation

<?php
function taxonomy_multi_edit_menu() {
 
$items['admin/content/node/taxonomy_multi_edit'] = array(
-   
'title' => t('Assign categories'),
+   
'title' => 'Assign categories',
   
'page callback' => 'drupal_get_form',
   
'page arguments' => array('taxonomy_multi_edit_overview'),
   
'access arguments' => array('administer nodes'),
   
'weight' => 5,
   
'type' => MENU_LOCAL_TASK
 
);
  return
$items;
}
?>

#10

dman - November 19, 2008 - 07:14

Cool. Thanks for that.
This is what peer review is all about!
updated here

I also found a few inconsistancies by testing on another dev system and finally got a useful warning from PHP STRICT_NOTICES that revealed a genuine error!
First time ever! This makes it 0.005 useful instead of 0.000
(the DRUPAL-6--1-0 release was inadvertently deleting existing tags - which is pretty wrong)

#11

dman - November 19, 2008 - 08:39

A stable version incorporating this may get tagged soon, after a few more demo tests. We need an updated screenshot etc

#12

andypost - November 19, 2008 - 08:53

Suppose better to make -dev - more people can test before release

 
 

Drupal is a registered trademark of Dries Buytaert.