'textfield', '#title' => t('Snap Key'), '#required' => TRUE, '#default_value' => snap_get_key(), '#description' => t('Copy your key here. Get free key here'), ); $form['snap_preview_internal'] = array( '#type' => 'checkbox', '#title' => t('Preview internal links'), '#default_value' => variable_get('snap_preview_internal', 0), '#description' => t('Preview internal links (we do not recommend turning this on).'), ); $form['snap_searchbox'] = array( '#type' => 'checkbox', '#title' => t('Display Snap Search Box'), '#default_value' => variable_get('snap_searchbox', 0), '#description' => t('Include a Search box in preview window.'), ); $form['snap_logo'] = array( '#type' => 'checkbox', '#title' => t('Display Customized Logo'), '#default_value' => variable_get('snap_logo', 0), '#description' => t('Enable customized logo in snap preview popup, uploaded during snap sign up.'), ); $form['snap_linktype'] = array( '#type' => 'select', '#title' => t('Show link with'), '#default_value' => variable_get('snap_linktype', 0), '#options' => array(0 => t('Link Only'), 1 => t('Icon and Link (both)'), 2 => t('Icon and Link (icon only)')), '#description' => t('Set preview to show on both a icon and link, icon only, or link only'), ); $form['snap_theme'] = array( '#type' => 'select', '#title' => t('Theme'), '#default_value' => variable_get('snap_theme', 'silver'), '#options' => array('silver' => t('Silver (default)'), 'ice' => t('Ice (light blue)'), 'green' => t('Green (light green)'), 'linen' => t('Linen'), 'orange' => t('Orange'), 'pink' => t('Pink'), 'purple' => t('Purple'), 'asphalt' => t('Asphalt'), ), '#description' => t('Set popup with a new theme'), ); return $form; } function snap_javascript($key) { global $base_url; $output = ''; return $output; } ?>