| 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 |
), |
), |
| 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 |
), |
), |
| 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 |
), |
), |
| 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', |
| 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 |
} |
} |