You are here

function imageeditor_uploaders in Image Editor 6

6 calls to imageeditor_uploaders()
imageeditor_enabled in ./imageeditor.module
imageeditor_process_element in ./imageeditor.module
Process function for pixlr-enabled fields.
imageeditor_widget_settings in ./imageeditor.module
A list of settings needed by Pixlr module on widgets.
imageeditor_widget_settings_form in ./imageeditor.module
Configuration form for editing Pixlr settings for a field instance.
theme_imageeditor_widget_settings_form in ./imageeditor.module

... See full list

File

./imageeditor.module, line 987
Allows online editing of images using different image editing services.

Code

function imageeditor_uploaders() {
  static $uploaders;
  if (empty($uploaders)) {
    $uploaders = array(
      'pixlr_upload' => array(
        'name' => t('Pixlr Upload'),
        'description' => t('Upload to http://pixlr.com service'),
        'class' => 'pixlr-upload',
        'site' => 'http://pixlr.com/',
        'api_key' => FALSE,
      ),
      'immio_upload' => array(
        'name' => t('imm.io Upload'),
        'description' => t('Upload to http://imm.io service'),
        'class' => 'immio-upload',
        'site' => 'http://imm.io/api/',
        'api_key' => FALSE,
      ),
      'imageshack_upload' => array(
        'name' => t('ImageShack Upload'),
        'description' => t('Upload to http://imageshack.us service'),
        'class' => 'imageshack-upload',
        'site' => 'http://imageshack.us/',
        'api_key' => TRUE,
        'api_key_codename' => 'imageeditor_imageshack_api_key',
      ),
    );

    // Invoke hook_imageeditor_uploaders_alter().
    drupal_alter('imageeditor_uploaders', $uploaders);
  }
  return $uploaders;
}