abuse_operations_form

Definition

abuse_operations_form($object)
abuse/abuse.module, line 659

Description

A generated form to display to administrators with each node on operators on a node

Code

<?php
function abuse_operations_form($object) {
  $form = array();
  $form['object_type'] = array(
    '#type' => 'value',
    '#value' => $object->type
  );
  $form['object_oid'] = array(
    '#type' => 'value',
    '#value' => $object->oid
  );
  $form['op']['allow'] = array(
    '#type' => 'submit',
    '#value' => t('Allow')
  );
  $form['op']['remove'] = array(
    '#type' => 'submit',
    '#value' => t('Remove')
  );
  $form['op']['warn_and_remove'] = array(
    '#type' => 'submit',
    '#value' => t('Warn and Remove')
  );
  $form['op']['warn_and_allow'] = array(
    '#type' => 'submit',
    '#value' => t('Warn and Allow')
  );
  $form['op']['ban'] = array(
    '#type' => 'submit',
    '#value' => t('Ban')
  );
  $form['#submit'] = array("abuse_operations_form_submit" => 1);

  return $form;
}
?>