function imageeditor_settings_form in Image Editor 7
Same name and namespace in other branches
- 6 imageeditor.module \imageeditor_settings_form()
Image Editor module API keys and other settings form.
1 string reference to 'imageeditor_settings_form'
- imageeditor_menu in ./
imageeditor.module - Implements hook_menu().
File
- ./
imageeditor.admin.inc, line 10 - Admin settings for the Image Editor module.
Code
function imageeditor_settings_form() {
$form = array();
$options = array();
foreach (imageeditor_info('overlay') as $codename => $overlay) {
$options[$codename] = $overlay['name'];
}
$form['imageeditor_overlay_type'] = array(
'#type' => 'radios',
'#title' => t('Image Editor overlay type'),
'#description' => t('Choose Image Editor modal window type.'),
'#options' => $options,
'#default_value' => variable_get('imageeditor_overlay_type', 'custom'),
);
foreach (array(
'editor',
'uploader',
) as $type) {
foreach (imageeditor_info($type) as $codename => $plugin) {
if ($function = ctools_plugin_get_function($plugin, 'settings_form_callback')) {
$form[$codename] = $function();
}
}
}
return system_settings_form($form);
}