You are here

function regcode_admin_list_getactions in Registration codes 6

Build form elmeents for all of the actions available

1 call to regcode_admin_list_getactions()
regcode_admin_list in ./regcode.admin.php
Return the code list page content with(in) the according filter form

File

./regcode.admin.php, line 491
Functions and pages needed for the administration interface for the regcode module.

Code

function regcode_admin_list_getactions(&$form) {

  // Create a filter list button
  $form['filter']['action_filter'] = array(
    '#type' => 'submit',
    '#value' => t('Filter list'),
    '#submit' => array(
      'regcode_admin_list_savefilters',
      'regcode_admin_list_action_filter',
    ),
    '#weight' => 30,
  );

  // Create a delete button
  $form['filter']['action_delete'] = array(
    '#type' => 'submit',
    '#value' => t('Delete codes'),
    '#submit' => array(
      'regcode_admin_list_savefilters',
      'regcode_admin_list_action_delete',
    ),
    '#weight' => 40,
  );

  // Create an export list button
  $form['filter']['action_export'] = array(
    '#type' => 'submit',
    '#value' => t('Export to CSV'),
    '#submit' => array(
      'regcode_admin_list_savefilters',
      'regcode_admin_list_action_export',
    ),
    '#weight' => 50,
  );
}