It has been found major bug error with vt_slider_api module version 1.6 and below when used with Drupal 7.10.
Symptom : File field image cannot be saved or deleted, all text entry in the slider fields cannot be saved or deleted.
Fix : Permanent fix not available yet, please use this temporary fix.
By using temporary fix, all the fields is removed from vertical tabs and will be displayed as normal fields.
Find vt_slider_api_form_alter() function in vt_slider_api.module and replace it with this function :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | /** * Alter vertical tabs and put our fields into it **/ function vt_slider_api_form_alter(&$form, $form_state , $form_id) { $node_types = str_replace('_', '-', variable_get('vt_slider_api_source_content_type', '')); // fix for $node_types is not an array if (isset($node_types) && !is_array($node_types)) $node_types = array($node_types); if (is_array($node_types)) { foreach ($node_types as $value) { if ($form['#id'] != $value . '-node-form') continue; $form['vtslider_slidertype'][$form['#node']->language]['#options'] = vtslide_build_options(); if (isset($form['#node']->vtslider_slidertype[$form['#node']->language][0]['value'])) { $form['vtslider_slidertype'][$form['#node']->language]['#default_value'] = $form['#node']->vtslider_slidertype[$form['#node']->language][0]['value']; } $form['vtslider_enable'][$form['#node']->language]['#options'] = array('enable' => t('Enable'), 'disable' => t('Disable')); // only add default next largest weight available if there is an empty default value if (empty($form['vtslider_weight'][$form['#node']->language][0]['value']['#default_value'])) { $form['vtslider_weight'][$form['#node']->language][0]['value']['#default_value'] = vtslide_get_max_weight(NULL); } } } } |
Loves to build website
This issue is fixed as per vt_slider_api Version 1.7
Loves to build website
Sorry
Ooops sorry my mistake! Everything is ok!