You are here

function LocalFolderProvider::settingsForm in Devel images provider 8

Same name and namespace in other branches
  1. 7 plugins/devel_image_provider/provider/LocalFolderProvider.class.php \LocalFolderProvider::settingsForm()

Generates a settings form for this handler.

Overrides DevelImagesProviderBase::settingsForm

File

plugins/devel_image_provider/provider/LocalFolderProvider.class.php, line 17
Local folder support class.

Class

LocalFolderProvider
Add support for local images.

Code

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'] : '',
  );
  return $form;
}