/[drupal]/contributions/modules/photos/inc/photos.form.inc
ViewVC logotype

Diff of /contributions/modules/photos/inc/photos.form.inc

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

revision 1.1.2.1 by eastcn, Fri Mar 6 08:22:41 2009 UTC revision 1.1.2.2 by eastcn, Sun Mar 22 18:53:55 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: photos.form.inc,v 1.0 2009/2/25 15:40 eastcn Exp $  // $Id: photos.form.inc,v 1.1.2.1 2009/03/06 08:22:41 eastcn Exp $
3  function _photos_form($node){  function _photos_form($node){
4    global $user;    global $user;
5  drupal_add_js(  drupal_add_js(
# Line 41  EOT Line 41  EOT
41                  '#collapsed' => FALSE,                  '#collapsed' => FALSE,
42                  '#weight' => -3                  '#weight' => -3
43          );          );
44      $opt = array(t('Do not display'), t('Display cover'), t('Display thumbnails'));
45    if(variable_get('photos_display_user', 1)){    if(variable_get('photos_display_user', 1)){
46          $form['photos']['global']['album'] = array(          $form['photos']['global']['album'] = array(
47                  '#type' => 'fieldset',                  '#type' => 'fieldset',
# Line 102  EOT Line 103  EOT
103          '#required' => TRUE,          '#required' => TRUE,
104          '#description' => t('The width and height of flash, e.g: 640x480.'),          '#description' => t('The width and height of flash, e.g: 640x480.'),
105        );        );
106          $form['photos']['global']['album']['slide_music'] = array(
107            '#type' => 'textfield',
108            '#default_value' => !empty($node->album['slide_music']) ? $node->album['slide_music'] : '',
109            '#title' => t('Slide Music'),
110            '#description' => t('e.g: http://mysite/music.mp3'),
111          );
112        $opt[] = t('Slide show');        $opt[] = t('Slide show');
113      }      }
114    }    }
115    
   $opt = array(t('Do not display'), t('Display cover'), t('Display thumbnails'));  
   if(variable_get('photos_slide', 0)){  
     $opt[] = t('Slide show');  
   }  
   
116    if(variable_get('photos_display_page_user', 1)){    if(variable_get('photos_display_page_user', 1)){
117          $form['photos']['page']['album'] = array(          $form['photos']['page']['album'] = array(
118                  '#type' => 'fieldset',                  '#type' => 'fieldset',

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

  ViewVC Help
Powered by ViewVC 1.1.3