function FlickholdrProvider::settingsForm in Devel images provider 7
Same name and namespace in other branches
- 8 plugins/devel_image_provider/provider/FlickholdrProvider.class.php \FlickholdrProvider::settingsForm()
Generates a settings form for this handler.
Overrides DevelImagesProviderBase::settingsForm
File
- plugins/
devel_image_provider/ provider/ FlickholdrProvider.class.php, line 17 - Flickholdr support class.
Class
- FlickholdrProvider
- Add support for flickholdr.com.
Code
function settingsForm() {
$form = parent::settingsForm();
$form['devel_image_provider_' . $this->plugin['name']]['devel_image_provider_tags'] = array(
'#type' => 'textfield',
'#title' => t('Flickholdr tags'),
'#description' => t('Comma separated values. You must omit blank spaces.'),
'#size' => 90,
'#default_value' => isset($this->settings['devel_image_provider_tags']) ? $this->settings['devel_image_provider_tags'] : '',
);
$form['devel_image_provider_' . $this->plugin['name']]['devel_image_provider_seed'] = array(
'#type' => 'textfield',
'#title' => t('Flickholdr seed numer'),
'#description' => t('Number of random values, a low value would be faster but generate a lower variety of images.'),
'#size' => 90,
'#default_value' => isset($this->settings['devel_image_provider_seed']) ? $this->settings['devel_image_provider_seed'] : 100,
);
return $form;
}