/[drupal]/contributions/modules/abuse/abuse.admin.inc
ViewVC logotype

Diff of /contributions/modules/abuse/abuse.admin.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.3 by btmash, Fri Jul 18 15:52:51 2008 UTC revision 1.1.2.4 by btmash, Wed Oct 15 17:50:58 2008 UTC
# Line 517  function abuse_admin_moderate_content(&$ Line 517  function abuse_admin_moderate_content(&$
517    );    );
518    $form['allow']['message'] = array(    $form['allow']['message'] = array(
519      '#type' => 'item',      '#type' => 'item',
520      '#value' => t('Are you sure you want to allow !content?', array('!content' => '<em>'. $object->title .'</em>')),      '#value' => t('Are you sure you want to allow "@content"?', array('@content' => $object->title)),
521      '#attributes' => array(      '#attributes' => array(
522        'class' => 'confirm'        'class' => 'confirm'
523      ),      ),
# Line 539  function abuse_admin_moderate_content(&$ Line 539  function abuse_admin_moderate_content(&$
539    );    );
540    $form['remove']['message'] = array(    $form['remove']['message'] = array(
541      '#type' => 'item',      '#type' => 'item',
542      '#value' => t('Are you sure you want to remove !content?', array('!content' => '<em>'. $object->title .'</em>')),      '#value' => t('Are you sure you want to remove "@content"?', array('@content' => $object->title)),
543      '#attributes' => array(      '#attributes' => array(
544        'class' => 'confirm'        'class' => 'confirm'
545      ),      ),
# Line 626  function abuse_admin_moderate_content(&$ Line 626  function abuse_admin_moderate_content(&$
626      );      );
627      $form['ban']['confirmation_message'] = array(      $form['ban']['confirmation_message'] = array(
628        '#type' => 'item',        '#type' => 'item',
629        '#value' => t('Are you sure you want to ban !name?', array('!name' => '<em>'. check_plain($object->name) .'</em>')),        '#value' => t('Are you sure you want to ban "@name"?', array('@name' => $object->name)),
630        '#attributes' => array(        '#attributes' => array(
631          'class' => 'confirm'          'class' => 'confirm'
632        ),        ),
# Line 729  function abuse_admin_ban(&$form_state, $ Line 729  function abuse_admin_ban(&$form_state, $
729      );      );
730      $form['message']['confirmation_message'] = array(      $form['message']['confirmation_message'] = array(
731        '#type' => 'item',        '#type' => 'item',
732        '#value' => t('Are you sure you want to ban !name?', array('!name' => '<em>'. $account->name .'</em>'))        '#value' => t('Are you sure you want to ban "@name"?', array('@name' => $account->name)),
733      );      );
734      $form['message']['confirm'] = array(      $form['message']['confirm'] = array(
735        '#type' => 'submit',        '#type' => 'submit',
# Line 833  function template_preprocess_abuse_repor Line 833  function template_preprocess_abuse_repor
833    $variables['account'] = user_load(array('uid' => $object->uid));    $variables['account'] = user_load(array('uid' => $object->uid));
834    $variables['offences'] = number_format(_abuse_get_offence_count($object->uid));    $variables['offences'] = number_format(_abuse_get_offence_count($object->uid));
835    $variables['warnings'] = number_format(_abuse_get_warning_count($object->uid));    $variables['warnings'] = number_format(_abuse_get_warning_count($object->uid));
836    $variables['nodeType'] = $object->type;    $variables['nodeType'] = ($object->type == 'comment') ? "Comment" : "Movie";
837    
838    $variables['moderate'] = drupal_get_form('abuse_admin_moderate_content'. $counter++, $object->type, $object->oid, TRUE);    $variables['moderate'] = drupal_get_form('abuse_admin_moderate_content'. $counter++, $object->type, $object->oid, TRUE);
839  }  }

Legend:
Removed from v.1.1.2.3  
changed lines
  Added in v.1.1.2.4

  ViewVC Help
Powered by ViewVC 1.1.3