Fix for In form alter, the required DOES work but the multiple doesn't

  1. function frankp_horoscope_form(&$node) {
  2.         $type = node_get_types('type', $node);
  3.        
  4.         $form['taxonomy'][FRANKP_HOROSCOPE_TAXONOMY_STAR_SIGNS] = taxonomy_form(FRANKP_HOROSCOPE_TAXONOMY_STAR_SIGNS);
  5.        
  6.         $form['body_filter']['body'] = array(
  7.                         '#type' => 'textarea',
  8.                         '#title' => check_plain($type->body_label),
  9.                         '#default_value' => $node->body,
  10.                         '#required' => TRUE
  11.         );
  12.        
  13.         return $form;
  14. }
  15.  
  16.  
  17. function frankp_horoscope_form_frankp_horoscope_node_form_alter(&$form, $form_state) {
  18.         $form['taxonomy'][FRANKP_HOROSCOPE_TAXONOMY_STAR_SIGNS]['#required'] = TRUE;
  19.         $form['taxonomy'][FRANKP_HOROSCOPE_TAXONOMY_STAR_SIGNS]['#multiple'] = FALSE;
  20. }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.