You are here

function imagecache_ui_preset_add_form in ImageCache 5.2

1 string reference to 'imagecache_ui_preset_add_form'
imagecache_ui_menu in ./imagecache_ui.module

File

./imagecache_ui.module, line 126

Code

function imagecache_ui_preset_add_form($presetid = 0) {
  $form = array();
  $form['presetname'] = array(
    '#type' => 'textfield',
    '#size' => '64',
    '#title' => t('Preset Namespace'),
    '#default_value' => '',
    '#description' => t('The namespace is used in URLs for images to tell imagecache how to process an image. Please only use alphanumeric characters, underscores (_), and hyphens (-) for preset names.'),
    '#validate' => array(
      'imagecache_element_presetname_validate' => array(),
    ),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Create New Preset'),
  );
  return $form;
}