| 1 |
<?php |
<?php |
| 2 |
// $Id: flickrstickr.module,v 1.21 2006/12/17 18:26:51 aronnovak Exp $ |
// $Id: flickrstickr.module,v 1.22 2007/01/22 10:16:01 aronnovak Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 156 |
'#description' => t('TODO'), |
'#description' => t('TODO'), |
| 157 |
'#required' => TRUE);*/ |
'#required' => TRUE);*/ |
| 158 |
|
|
|
//$form['flickrstickr']['flickrstickr_size']= array ('#type' => 'select', '#title' => t('Image size'), '#default_value' => $flickrstickr['size'], '#options' => $options_size, '#description' => t('The Flickr image size inserted into your post..'), '#required' => TRUE); |
|
| 159 |
if (flickrstickr_isdrupal47()) { |
if (flickrstickr_isdrupal47()) { |
| 160 |
return $form; |
return $form; |
| 161 |
} |
} |
| 228 |
$ret .= '</table>'; |
$ret .= '</table>'; |
| 229 |
$ret .= '</div>'; |
$ret .= '</div>'; |
| 230 |
$ret .= '<p id="flickrsettings">'; |
$ret .= '<p id="flickrsettings">'; |
| 231 |
$ret .= t('User') .': <input id="flickrstickr_user" type="text" name="user" value="'. $flickrstickr['username'] .'" />'; |
$ret .= t('User') .': <input id="flickrstickr_user" type="text" name="user" value="'. $flickrstickr['username'] .'" onkeypress="return handleEnter()" />'; |
| 232 |
$ret .= t('Tag') .': <input id="flickrstickr_tag" type="text" name="tag" />'; |
$ret .= t('Tag') .': <input id="flickrstickr_tag" type="text" name="tag" onkeypress="return handleEnter()" />'; |
| 233 |
// If you want to add a new size, just add a new element to this array. (but this should be put into settings?) |
// If you want to add a new size, just add a new element to this array. (but this should be put into settings?) |
| 234 |
$options_size = array('|200' => t('Default'), |
$options_size = array('|200' => t('Default'), |
| 235 |
'|100' => t('Thumbnail'), |
'|100' => t('Thumbnail'), |