function imagecache_ui_action_form in ImageCache 5.2
Same name and namespace in other branches
- 6.2 imagecache_ui.pages.inc \imagecache_ui_action_form()
1 string reference to 'imagecache_ui_action_form'
File
- ./
imagecache_ui.module, line 408
Code
function imagecache_ui_action_form($actionid) {
$definitions = imagecache_action_definitions();
if (!($action = imagecache_action($actionid))) {
drupal_set_message('Unknown Action.' . $actionid, 'error');
drupal_goto('admin/build/imagecache');
}
if (!($preset = imagecache_preset($action['presetid']))) {
drupal_set_message('Unknown Preset.');
drupal_goto('admin/build/imagecache');
}
$form = array(
'#tree' => true,
);
$form['actionid'] = array(
'#type' => 'value',
'#value' => $action['actionid'],
);
if ($definitions[$action['action']]['file']) {
require_once $definitions[$action['action']]['file'];
}
$form['data'] = call_user_func($action['action'] . '_form', $action['data']);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Update Action'),
);
return $form;
}