/[drupal]/contributions/modules/hierarchical_select/modules/hs_content_taxonomy.module
ViewVC logotype

Diff of /contributions/modules/hierarchical_select/modules/hs_content_taxonomy.module

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

revision 1.32, Fri Sep 19 17:11:07 2008 UTC revision 1.33, Mon Dec 1 02:21:17 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: hs_content_taxonomy.module,v 1.31 2008/09/18 09:17:24 wimleers Exp $  // $Id: hs_content_taxonomy.module,v 1.32 2008/09/19 17:11:07 wimleers Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 164  function hs_content_taxonomy_config_form Line 164  function hs_content_taxonomy_config_form
164  /**  /**
165   * Additional submit callback to update the multiple values field setting.   * Additional submit callback to update the multiple values field setting.
166   */   */
167  function hs_content_taxonomy_common_config_form_submit($form_id, $form_values, $content_type_name, $field_name) {  function hs_content_taxonomy_common_config_form_submit($form_id, $form_state['values'], $content_type_name, $field_name) {
168    $config = $form_values['hierarchical_select_config'];    $config = $form_state['values']['hierarchical_select_config'];
169    $multiple_values = ($config['save_lineage'] | $config['dropbox']['status']);    $multiple_values = ($config['save_lineage'] | $config['dropbox']['status']);
170    
171    $content_type = content_types($content_type_name);    $content_type = content_types($content_type_name);
172    $field = $content_type['fields'][$field_name];    $field = $content_type['fields'][$field_name];
173    
174    $form_values = array(    $form_state['values'] = array(
175      'widget_type' => 'content_taxonomy_hs',      'widget_type' => 'content_taxonomy_hs',
176      'label'       => $field['widget']['label'],      'label'       => $field['widget']['label'],
177      'weight'      => $field['widget']['weight'],      'weight'      => $field['widget']['weight'],
# Line 191  function hs_content_taxonomy_common_conf Line 191  function hs_content_taxonomy_common_conf
191      'form_id'     => '_content_admin_field',      'form_id'     => '_content_admin_field',
192    );    );
193    
194    drupal_execute('_content_admin_field', $form_values, $field['type_name'], $field_name);    drupal_execute('_content_admin_field', $form_state['values'], $field['type_name'], $field_name);
195  }  }
196    
197    

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

  ViewVC Help
Powered by ViewVC 1.1.2