/[drupal]/contributions/modules/node_form_rearrange/node_form_rearrange.module
ViewVC logotype

Diff of /contributions/modules/node_form_rearrange/node_form_rearrange.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1, Mon Nov 17 21:08:10 2008 UTC revision 1.2, Mon Nov 17 22:55:04 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: node_form_rearrange.module,v 1.1 2008/11/17 21:08:10 chiddicks Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 17  function node_form_rearrange_form_alter( Line 17  function node_form_rearrange_form_alter(
17      $vocabularies = db_query(db_rewrite_sql("SELECT v.* FROM {vocabulary} v INNER JOIN {vocabulary_node_types} n ON v.vid = n.vid WHERE n.type = '%s'      $vocabularies = db_query(db_rewrite_sql("SELECT v.* FROM {vocabulary} v INNER JOIN {vocabulary_node_types} n ON v.vid = n.vid WHERE n.type = '%s'
18  ORDER BY v.weight, v.name", 'v', 'vid'), $form['type']['#value']);  ORDER BY v.weight, v.name", 'v', 'vid'), $form['type']['#value']);
19      //loop through vocabularies, moving their form element out of the taxonomy fieldset      //loop through vocabularies, moving their form element out of the taxonomy fieldset
     variable_set("aaaa", $form['taxonomy']);  
20      while ($vocabulary = db_fetch_object($vocabularies)) {      while ($vocabulary = db_fetch_object($vocabularies)) {
21      //check to see if non-tag vocabularies exist      //check to see if non-tag vocabularies exist
22      if ($form['taxonomy'][$vocabulary->vid]) {      if ($form['taxonomy'][$vocabulary->vid]) {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2