/[drupal]/contributions/modules/slider/slider.module
ViewVC logotype

Diff of /contributions/modules/slider/slider.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.2.2.2, Wed Feb 25 14:40:16 2009 UTC revision 1.1.2.2.2.3, Mon May 18 09:32:51 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: slider.module,v 1.1.2.2.2.1 2009/02/25 11:56:32 marktheunissen Exp $  // $Id: slider.module,v 1.1.2.2.2.2 2009/02/25 14:40:16 marktheunissen Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 72  function slider_field_formatter_info() { Line 72  function slider_field_formatter_info() {
72  }  }
73    
74  /**  /**
75     * Implementation of hook_form_alter().
76     */
77    function slider_form_alter(&$form, $form_state, $form_id) {
78      if ($form_id == 'node_type_form' && isset($form['identity']['type'])) {
79        $form['slider'] = array(
80          '#type' => 'fieldset',
81          '#collapsible' => TRUE,
82          '#collapsed' => FALSE,
83          '#title' => t('Slider settings'),
84        );
85    
86        $form['slider']['slider_tabs_position'] = array(
87          '#type' => 'select',
88          '#title' => t('Location of the Slider tabs'),
89          '#default_value' => variable_get('slider_tabs_position_' . $form['#node_type']->type, 'above'),
90          '#options' => array(
91            'above' => t('Above'),
92            'below' => t('Below'),
93            'disabled' => t('Disabled'),
94          ),
95        );
96      }
97    }
98    
99    /**
100   * Theme the slider CCK formatter.   * Theme the slider CCK formatter.
101   */   */
102  function theme_slider_formatter_slider_above_below($element) {  function theme_slider_formatter_slider_above_below($element) {

Legend:
Removed from v.1.1.2.2.2.2  
changed lines
  Added in v.1.1.2.2.2.3

  ViewVC Help
Powered by ViewVC 1.1.2