You are here

function revisioning_ux_delete_archived in Revisioning 7

Same name and namespace in other branches
  1. 8 revisioning_ux/revisioning_ux.module \revisioning_ux_delete_archived()

Form builder: Delete archived.

1 string reference to 'revisioning_ux_delete_archived'
revisioning_ux_page_alter in revisioning_ux/revisioning_ux.module
Implements hook_page_alter().

File

revisioning_ux/revisioning_ux.module, line 216
Revisioning User Experience Adjustments

Code

function revisioning_ux_delete_archived($form, $form_state, $node) {
  $form = array();
  $form['node'] = array(
    '#type' => 'value',
    '#value' => $node,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Delete archived'),
    '#submit' => array(
      'revisioning_ux_delete_archived_submit',
    ),
  );
  return $form;
}