function imageeditor_picozu_settings_form_callback in Image Editor 7
1 string reference to 'imageeditor_picozu_settings_form_callback'
- picozu.inc in plugins/
editor/ picozu/ picozu.inc - Picozu editor for Image Editor module.
File
- plugins/
editor/ picozu/ picozu.inc, line 36 - Picozu editor for Image Editor module.
Code
function imageeditor_picozu_settings_form_callback() {
$form = array(
'#type' => 'fieldset',
'#title' => t('Picozu'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['imageeditor_picozu_theme'] = array(
'#type' => 'select',
'#title' => t('Theme'),
'#description' => t('Choose color theme for Picozu editor.'),
'#options' => array(
'default' => 'Default',
'galaxy' => 'Galaxy',
'kids' => 'Kids',
),
'#default_value' => variable_get('imageeditor_picozu_theme', 'default'),
'#weight' => 5,
);
$form['imageeditor_picozu_workspace'] = array(
'#type' => 'select',
'#title' => t('Workspace'),
'#description' => t('Choose workspace for Picozu editor.'),
'#options' => array(
0 => 'Minimal',
1 => 'Default',
2 => 'Educational',
3 => 'Kids',
),
'#default_value' => variable_get('imageeditor_picozu_workspace', 1),
'#weight' => 10,
);
$link = 'https://www.picozu.com/developers/applications/';
$form['imageeditor_picozu_api_key'] = array(
'#type' => 'textfield',
'#title' => t('API key'),
'#description' => l($link, $link, array(
'attributes' => array(
'target' => '_blank',
),
)),
'#default_value' => variable_get('imageeditor_picozu_api_key', ''),
'#size' => 50,
'#maxlength' => 100,
'#required' => FALSE,
'#weight' => 15,
);
return $form;
}