| 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( |
| 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', |
| 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', |