You are here

function cacheflush_cloner_presets_clone in CacheFlush 7.2

Callback function after drupal_get_form().

1 string reference to 'cacheflush_cloner_presets_clone'
cacheflush_cloner_menu in cacheflush_cloner/cacheflush_cloner.module
Implements hook_menu().

File

cacheflush_cloner/cacheflush_cloner.clone.inc, line 11
Cacheflush Cloner include.

Code

function cacheflush_cloner_presets_clone($form, &$form_state, $preset_id) {

  // Form element for preset name.
  $form['cacheflush_preset_name'] = array(
    '#type' => "textfield",
    '#title' => t('Preset Name'),
    '#weight' => 0,
    '#required' => TRUE,
  );

  // Form element Submit button.
  $form['actions'] = array(
    '#type' => 'actions',
  );
  $form['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Create'),
  );
  $form_state['preset_id'] = $preset_id;
  return $form;
}