You are here

function imageeditor_picmonkey_settings_form_callback in Image Editor 7

1 string reference to 'imageeditor_picmonkey_settings_form_callback'
picmonkey.inc in plugins/editor/picmonkey/picmonkey.inc
Picmonkey editor for Image Editor module.

File

plugins/editor/picmonkey/picmonkey.inc, line 88
Picmonkey editor for Image Editor module.

Code

function imageeditor_picmonkey_settings_form_callback() {
  $form = array(
    '#type' => 'fieldset',
    '#title' => t('PicMonkey'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
  );
  $link = 'https://docs.google.com/document/pub?id=1OhlOYcCvJiV44c13XpDx0HJV3UArKgRya3lq_Ahr5T0';
  $form['imageeditor_picmonkey_api_key'] = array(
    '#type' => 'textfield',
    '#title' => t('API key'),
    '#description' => l($link, $link, array(
      'attributes' => array(
        'target' => '_blank',
      ),
    )),
    '#default_value' => variable_get('imageeditor_picmonkey_api_key', ''),
    '#size' => 50,
    '#maxlength' => 100,
    '#required' => FALSE,
    '#weight' => 25,
  );
  return $form;
}