You are here

function imageeditor_sumopaint_settings_form_callback in Image Editor 7

1 string reference to 'imageeditor_sumopaint_settings_form_callback'
sumopaint.inc in plugins/editor/sumopaint/sumopaint.inc
Sumopaint editor for Image Editor module.

File

plugins/editor/sumopaint/sumopaint.inc, line 58
Sumopaint editor for Image Editor module.

Code

function imageeditor_sumopaint_settings_form_callback() {
  $form = array(
    '#type' => 'fieldset',
    '#title' => t('Sumo Paint'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  $link = 'http://www.sumopaint.com/getpartner/';
  $form['imageeditor_sumopaint_api_key'] = array(
    '#type' => 'textfield',
    '#title' => t('API key'),
    '#description' => l($link, $link, array(
      'attributes' => array(
        'target' => '_blank',
      ),
    )),
    '#default_value' => variable_get('imageeditor_sumopaint_api_key', ''),
    '#size' => 50,
    '#maxlength' => 100,
    '#required' => FALSE,
    '#weight' => 25,
  );
  return $form;
}