$vars) { $saved = array_merge($saved, $vars); } $form['wijering_imagerotator']['basic'] = array( '#type' => 'fieldset', '#title' => t('Basic'), '#collapsible' => TRUE, '#collapsed' => TRUE, ); $form['wijering_imagerotator']['basic']['height'] = array( '#type' => 'textfield', '#default_value' => $saved['height'], '#size' => 8, '#maxlength' => 5, '#title' => t('Height'), '#description' => t('Leave blank for default. (height)'), ); $form['wijering_imagerotator']['basic']['width'] = array( '#type' => 'textfield', '#default_value' => $saved['width'], '#size' => 8, '#maxlength' => 5, '#title' => t('Width'), '#description' => t('Leave blank for default. (width)'), ); $form['wijering_imagerotator']['color'] = array( '#type' => 'fieldset', '#title' => t('Color'), '#collapsible' => TRUE, '#collapsed' => TRUE, ); $form['wijering_imagerotator']['color']['backcolor'] = array( '#type' => 'textfield', '#default_value' => $saved['backcolor'], '#size' => 8, '#maxlength' => 7, '#title' => t('Background color'), '#description' => t('Enter a hex value eg. for white enter #FFFFFF. (backcolor)'), ); $form['wijering_imagerotator']['color']['frontcolor'] = array( '#type' => 'textfield', '#default_value' => $saved['frontcolor'], '#size' => 8, '#maxlength' => 7, '#title' => t('Text color'), '#description' => t('Enter a hex value eg. for white enter #FFFFFF. (frontcolor)'), ); $form['wijering_imagerotator']['color']['lightcolor'] = array( '#type' => 'textfield', '#default_value' => $saved['lightcolor'], '#size' => 8, '#maxlength' => 7, '#title' => t('Rollover color'), '#description' => t('Enter a hex value eg. for white enter #FFFFFF. (lightcolor)'), ); $form['wijering_imagerotator']['appearance'] = array( '#type' => 'fieldset', '#title' => t('Appearance'), '#collapsible' => TRUE, '#collapsed' => TRUE, ); $form['wijering_imagerotator']['appearance']['logo'] = array( '#type' => 'textfield', '#default_value' => $saved['logo'], '#title' => t('Logo URL'), '#description' => t('Full url to logo for a watermark, use PNG files for best results. (logo)'), ); $form['wijering_imagerotator']['appearance']['overstretch'] = array( '#type' => 'select', '#default_value' => $saved['overstretch'], '#title' => t('Overstretch'), '#options' => $options['overstretch'], '#description' => t('Defines how to stretch images to fit the display. (overstretch)'), ); $form['wijering_imagerotator']['appearance']['showicons'] = array( '#type' => 'select', '#options' => $options['bool'], '#default_value' => $saved['showicons'], '#title' => t('Show icons'), '#description' => t('Show status icons in display. (showicons)'), ); $form['wijering_imagerotator']['playback'] = array( '#type' => 'fieldset', '#title' => t('Playback'), '#collapsible' => TRUE, '#collapsed' => TRUE, ); $form['wijering_imagerotator']['appearance']['transition'] = array( '#type' => 'select', '#default_value' => $saved['transition'], '#options' => $options['transition'], '#title' => t('Transition effect'), '#description' => t('The way the photos change from one to another". (transition)'), ); $form['wijering_imagerotator']['playback']['rotatetime'] = array( '#type' => 'textfield', '#default_value' => $saved['rotatetime'], '#size' => 5, '#maxlength' => 3, '#title' => t('Rotate time'), '#description' => t('Number of seconds between image rotations. (rotatetime)'), ); $form['wijering_imagerotator']['playback']['shuffle'] = array( '#type' => 'select', '#options' => $options['bool'], '#default_value' => $saved['shuffle'], '#title' => t('Shuffle'), '#description' => t('Shuffle media randomly. (shuffle)'), ); $form['wijering_imagerotator']['interaction'] = array( '#type' => 'fieldset', '#title' => t('Interaction'), '#collapsible' => TRUE, '#collapsed' => TRUE, ); $form['wijering_imagerotator']['interaction']['enablejs'] = array( '#type' => 'select', '#options' => $options['bool'], '#default_value' => $saved['enablejs'], '#title' => t('Enable javascript'), '#description' => t('Enable javascript interaction with the flash player. (enablejs)'), ); $form['wijering_imagerotator']['interaction']['link'] = array( '#type' => 'textfield', '#default_value' => $saved['link'], '#title' => t('Link URL'), '#description' => t('Web address linked to logo watermark. (link)'), ); $form['wijering_imagerotator']['interaction']['linkfromdisplay'] = array( '#type' => 'select', '#options' => $options['bool'], '#default_value' => $saved['linkfromdisplay'], '#title' => t('Link from display'), '#description' => t('Link "Link URL" but with the whole display as the click area. (linkfromdisplay)'), ); $form['wijering_imagerotator']['interaction']['linktarget'] = array( '#type' => 'select', '#default_value' => $saved['linktarget'], '#options' => $options['linktarget'], '#title' => t('Link target'), '#description' => t('Target of "Link URL". (linktarget)'), ); $form['#tree'] = TRUE; $form['submit'] = array('#type' => 'submit', '#value' => t('Save configuration'), '#submit' => array('swftools_admin_form_submit') ); $form['reset'] = array('#type' => 'submit', '#value' => t('Reset to defaults') ); $form['#theme'] = 'system_settings_form'; return $form; }