taxonomy[] = $edit['taxonomy']; if (!$edit['defer']) { node_save($node); } watchdog('action', t('Changed taxonomy term of node %id to %term', array('%id' => intval($node->nid), '%term' => intval($edit['taxonomy'])))); break; case 'metadata': return array( 'description' => t('Change Taxonomy Term'), 'type' => t('Taxonomy'), 'batchable' => true, 'configurable' => true, ); //return the html config form for the action case 'form': $form = array(); // add form components $desc = t('The Taxonomy Term you wish to assign the Node.'); $options = array(); $result = db_query("SELECT v.vid, td.tid, td.name, th.parent, concat(v.name, ' ', td.name,' ', th.parent) as name3 from {term_hierarchy} th inner join {term_data} td on th.tid = td.tid right join {vocabulary} v on v.vid = td.vid order by v.vid, th.parent"); while ($data = db_fetch_object($result)) { $options[$data->name3] = $data->name3; } $form['taxonomy'] = array( '#type' => 'select', '#title' => t('Taxonomy Terms'), '#default_value' => $edit['taxonomy'], '#options' => $options, '#description' => $desc, ); return $form; case 'validate': return true; case 'submit': $params = array('taxonomy' => $edit['taxonomy']); return $params; } }