| 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 |
| 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'], |
| 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 |
|
|