We offer affordable conversion services to convert from PSD to Drupal.
Submit your own design composition to us to start building your Drupal site now.
Submit your brief for custom modules that you'd like us to build.
duckz 28. Jan, 2012

VT Slider API Bug With Drupal 7 Version 10

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

duckz say:
Sat, 01/28/2012 - 09:25
duckz's picture

This issue is fixed as per vt_slider_api Version 1.7

Loves to build website

Post new comment

The content of this field is kept private and will not be shown publicly.
Image CAPTCHA
Enter the characters shown in the image.
To prevent automated spam submissions leave this field empty.