<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16890" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><FONT size=2>
<P>Here's a strange new issue. This code is identical between D5 and D6, but in
D6 it acts weird.</P></FONT><FONT face="Courier New" size=2><FONT
face="Courier New" size=2>
<P>function revision_deletion_list_form($form_state, $node) {</P>
<P>...</P>
<P>$form['select'][$vid] = array(</P>
<P>'#type' => 'checkbox',</P>
<P>'#disabled' => ($vid == $rev->current),</P>
<P>'#default_value' => $rev->select,</P>
<P>'#return_value' => array(</P>
<P>'action' => 'delete',</P>
<P>'vid' => $vid,</P>
<P>'nid' => $rev->nid,</P>
<P>'title' => $rev->title,</P>
<P>'type' => $rev->type,</P>
<P>),</P>
<P>);</P>
<P>$form['class'][$vid] = array('#type' => 'value', '#value' =>
$rev->class);</P>
<P>$form['vid'][$vid] = array('#value' => l($vid, 'node/'. $nid
.'/revisions/'. $vid .'/view'));</P>
<P>$form['user'][$vid] = array('#value' => $accounts[$rev->uid]);</P>
<P>...</P>
<P>}</P>
<P>function theme_revision_deletion_list_form($form) {</P>
<P>$eo = array('odd' => 'even', 'even' => 'odd');</P>
<P>...</P>
<P>foreach (element_children($form['vid']) as $key) {</P>
<P>$class = $eo[$class];</P>
<P>$row_class = $class;</P>
<P>if (isset($form['class'][$key])) {</P>
<P>$row_class .= ' '. $form['class'][$key]['#value'];</P>
<P>unset($form['class'][$key]);</P>
<P>}</P>
<P>$log_present = !empty($form['log'][$key]['#value']);</P>
<P>$output .= '<tr class="'. $row_class . ($log_present ? ' merge-down' :
NULL) .'">';</P>
<P>$output .= '<td align="center"'. ($form['select'][$key]['#default_value']
? ' class="selected"' : '') .'">'. drupal_render($form['select'][$key])
.'</td>';</P>
<P>$output .= '<td>'. drupal_render($form['vid'][$key])
.'</td>';</P>
<P>$output .= '<td>'. drupal_render($form['user'][$key])
.'</td>';</P>
<P>...</P>
<P>}</P></FONT></FONT><FONT size=2>
<P>In D5, the array comes back just fine. In D6, the $row_class becomes the
returned value, unless I comment that line out, in which case, the correct array
is returned.</P>
<P> </P></FONT></FONT></DIV>
<DIV><FONT face="Comic Sans MS" color=#ff00ff size=4>Nancy E. Wichmann,
PMP</FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face="Courier New">Injustice anywhere is a
threat to justice everywhere. -- Dr. Martin L. King, Jr</FONT>.</FONT></DIV>
<DIV> </DIV></BODY></HTML>