/**
* Implementation of hook_form_alter().
*/ function taxonomy_weight_form_alter($form_id, &$form){ switch($form_id){ case'taxonomy_form_vocabulary': $form['term_weight'] = array( '#type' => 'textfield', '#title' => t('Term weight range'), '#default_value' => _taxonomy_weight_get($form['vid']['#value']), '#description' => t('Input number of weights to have selectable. For example, it is 10, the weight selection box would display numbers from -10 to 10.'), '#size' => 6, ); // Move submit buttons to bottom $form['submit']['#weight'] = 1; $form['delete']['#weight'] = 1; break;
; $Id: taxonomy_weight.info,v 1.1 2008/02/12 0829 Exp $ name = Taxonomy weight description = Allows the setting of the term weight range. dependencies = taxonomy version = "5.x-1.1"