You are here

function statspro_path_aggregator_add_form in Statistics Pro 6.2

1 string reference to 'statspro_path_aggregator_add_form'
statspro_path_aggregator_add in ./statspro_path_aggregated.inc

File

./statspro_path_aggregated.inc, line 169

Code

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