You are here

function statspro_path_aggregator_delete_form in Statistics Pro 6.2

The statspro_path_aggregator_delete_form form.

1 string reference to 'statspro_path_aggregator_delete_form'
statspro_path_aggregator_delete in ./statspro_path_aggregated.inc
Delete path aggregator.

File

./statspro_path_aggregated.inc, line 379

Code

function statspro_path_aggregator_delete_form($form, $spa) {
  $form = array();
  $form['spaid'] = array(
    '#type' => 'value',
    '#value' => (int) $spa['spaid'],
  );
  $form['name'] = array(
    '#type' => 'item',
    '#title' => t('Name'),
    '#size' => 54,
    '#value' => $spa['name'],
    '#disabled' => TRUE,
  );
  $form['paths'] = array(
    '#type' => 'textarea',
    '#title' => t('Paths'),
    '#description' => t('Include one path per line. Wildcards are accepted.'),
    '#size' => 54,
    '#value' => $spa['paths'],
    '#disabled' => TRUE,
  );
  $form['weight'] = array(
    '#type' => 'weight',
    '#title' => t('Weight'),
    '#description' => t('In the report, the items with greater weight will sink and the ones width smaller weight will be positioned nearer the top.'),
    '#value' => (int) $spa['weight'],
    '#disabled' => TRUE,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Delete'),
  );
  $form['cancel'] = array(
    '#value' => sprintf("<a href='/admin/settings/statspro/path_aggregator/list'>%s</a>", t('Cancel')),
  );
  return $form;
}