--- content_glider.module 2009-09-01 13:53:35.000000000 -0500 +++ content_glider.module 2009-09-01 14:39:39.000000000 -0500 @@ -77,6 +77,11 @@ function content_glider_admin_settings() '#title' => t('Glide animation duration (in milliseconds)'), '#default_value' => variable_get('content_glider_speed', 1000), ); + $form['content_glider_settings']['content_glider_milliseconds_btw_rotations'] = array( + '#type' => 'textfield', + '#title' => t('Glide animation milliseconds between rotations'), + '#default_value' => variable_get('content_glider_milliseconds_btw_rotations', 3000), + ); $form['content_glider_settings']['content_glider_direction'] = array( '#type' => 'select', '#title' => t('Set direction of glide'), @@ -192,7 +197,7 @@ function content_glider_block($op = 'lis $output_body .= 'direction: "'.$content_glider_direction_value.'", //set direction of glide: "updown", "downup", "leftright", or "rightleft"'."\n"; if ($content_glider_auto) { $auto="true"; } else { $auto="false"; } $output_body .= 'autorotate: '.$auto.', //Auto rotate contents (true/false)?'."\n"; - $output_body .= 'autorotateconfig: [3000, 2] //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]'."\n"; + $output_body .= 'autorotateconfig: ['. variable_get('content_glider_milliseconds_btw_rotations', 3000) .', 2] //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]'."\n"; $output_body .= '})'."\n"; $output_body .= '';