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;
 }
 function settingsForm()
 {
     $form = parent::settingsForm();
     // Provider specific settings.
     $form['devel_image_provider_' . $this->plugin['name']]['devel_image_provider_categories'] = array('#type' => 'select', '#title' => t('Lorempixum Categories'), '#options' => drupal_map_assoc(array('any', 'abstract', 'animals', 'city', 'food', 'nightlife', 'fashion', 'people', 'nature', 'sports', 'technics', 'transport')), '#multiple' => TRUE, '#size' => 12, '#default_value' => isset($this->settings['devel_image_provider_categories']) ? $this->settings['devel_image_provider_categories'] : 'any');
     $form['devel_image_provider_' . $this->plugin['name']]['devel_image_provider_include_text'] = array('#type' => 'radios', '#title' => t('Choose whether or not to add text inside the generated image'), '#default_value' => isset($this->settings['devel_image_provider_include_text']) ? $this->settings['devel_image_provider_include_text'] : 'default', '#options' => array('default' => t('No text'), 'random' => t('Random text'), 'custom' => t('Custom text')));
     $form['devel_image_provider_' . $this->plugin['name']]['devel_image_provider_custom_text'] = array('#type' => 'textfield', '#title' => t('Custom Text'), '#maxlength' => 255, '#description' => t('Enter some custom text to be rendered instead of the default image dimensions.'), '#default_value' => isset($this->settings['devel_image_provider_custom_text']) ? $this->settings['devel_image_provider_custom_text'] : NULL, '#states' => array('visible' => array(':input[name="available_providers[devel_image_provider_method_selected][devel_image_provider_' . $this->plugin['name'] . '][devel_image_provider_include_text]"]' => array('value' => 'custom'))));
     return $form;
 }
 function settingsForm()
 {
     $form = parent::settingsForm();
     unset($form['devel_image_provider_' . $this->plugin['name']]['devel_image_provider_gray']);
     // Provider specific settings.
     $form['devel_image_provider_' . $this->plugin['name']]['devel_image_provider_path'] = array('#type' => 'textfield', '#title' => t('Path to folder'), '#description' => t('Enter full path of the folder. Example: /home/user1011/images'), '#size' => 90, '#default_value' => isset($this->settings['devel_image_provider_path']) ? $this->settings['devel_image_provider_path'] : '');
     $form['devel_image_provider_' . $this->plugin['name']]['devel_image_no_alter'] = array('#type' => 'checkbox', '#title' => t('Do not alter images when picking them from the source directory.'), '#description' => t('Use for performance reasons, if checked, the images will be used as they are present in the source directory bypassing all field or instance settings such as file size or dimensions.'), '#default_value' => isset($this->settings['devel_image_no_alter']) ? $this->settings['devel_image_no_alter'] : '');
     return $form;
 }
 function settingsForm()
 {
     $form = parent::settingsForm();
     $form['devel_image_provider_' . $this->plugin['name']]['devel_image_provider_background_color'] = array('#type' => 'textfield', '#title' => t('Custom Background Color'), '#description' => t('Optional: Enter a background color in hex notation (e.g. #BADA55).'), '#default_value' => isset($this->settings['devel_image_provider_background_color']) ? $this->settings['devel_image_provider_background_color'] : NULL);
     $form['devel_image_provider_' . $this->plugin['name']]['devel_image_provider_text_color'] = array('#type' => 'textfield', '#title' => t('Custom Text Color'), '#description' => t('Optional: Enter a text color in hex notation (e.g. #B00B00). Note that text color requires a background color to be specified as well.'), '#default_value' => isset($this->settings['devel_image_provider_text_color']) ? $this->settings['devel_image_provider_text_color'] : NULL);
     $form['devel_image_provider_' . $this->plugin['name']]['devel_image_provider_include_text'] = array('#type' => 'radios', '#title' => t('Choose the text added inside the generated image'), '#default_value' => isset($this->settings['devel_image_provider_include_text']) ? $this->settings['devel_image_provider_include_text'] : 'default', '#options' => array('default' => t('Default (image dimensions)'), 'random' => t('Random text'), 'custom' => t('Custom text')));
     $form['devel_image_provider_' . $this->plugin['name']]['devel_image_provider_custom_text'] = array('#type' => 'textfield', '#title' => t('Custom Text'), '#maxlength' => 255, '#description' => t('Enter some custom text to be rendered instead of the default image dimensions.'), '#default_value' => isset($this->settings['devel_image_provider_custom_text']) ? $this->settings['devel_image_provider_custom_text'] : NULL, '#states' => array('visible' => array(':input[name="config_providers[devel_image_provider_' . $this->plugin['name'] . '][devel_image_provider_include_text]"]' => array('value' => 'custom'))));
     return $form;
 }
 function settingsForm()
 {
     $form = parent::settingsForm();
     unset($form['devel_image_provider_' . $this->plugin['name']]['devel_image_provider_gray']);
     return $form;
 }