You are here

function UnsplashitProvider::settingsForm in Devel images provider 7

Generates a settings form for this handler.

Overrides DevelImagesProviderBase::settingsForm

File

plugins/devel_image_provider/provider/UnsplashitProvider.class.php, line 17
Unsplashit support class.

Class

UnsplashitProvider
Add support for placekiten.com.

Code

function settingsForm() {
  $form = parent::settingsForm();

  /*
      $form['devel_image_provider_' . $this->plugin['name']]['devel_image_provider_grayscale'] = array(
        '#type' => 'checkbox',
        '#title' => t('Grayscale image'),
        '#description' => t('Grayscale the result images'),
        '#default_value' => isset($this->settings['devel_image_provider_grayscale']) ? $this->settings['devel_image_provider_grayscale'] : FALSE,
      );
  */
  $form['devel_image_provider_' . $this->plugin['name']]['devel_image_provider_blurred'] = array(
    '#type' => 'checkbox',
    '#title' => t('Get blurred image'),
    '#default_value' => isset($this->settings['devel_image_provider_blurred']) ? $this->settings['devel_image_provider_blurred'] : NULL,
  );
  return $form;
}