function imagecache_ui_action_add_page in ImageCache 6.2
Page with form for adding a new action to add to a preset.
1 string reference to 'imagecache_ui_action_add_page'
- imagecache_ui_menu in ./
imagecache_ui.module - Implementation of hook_menu().
File
- ./
imagecache_ui.pages.inc, line 356
Code
function imagecache_ui_action_add_page($preset, $actionname) {
// Make sure the name is valid.
if (!($definition = imagecache_action_definition($actionname))) {
drupal_set_message(t('Unknown action.'), 'error');
drupal_goto('admin/build/imagecache/' . $preset['presetid']);
}
$action = array(
'presetid' => $preset['presetid'],
'action' => $actionname,
'data' => array(),
);
return drupal_get_form('imagecache_ui_action_form', $preset, $action);
}