#156812 by tangent: coding style issues corrected in user.module, identified with coder module
parent
3e86bd0329
commit
92a32a8676
|
@ -1714,8 +1714,8 @@ function user_build_content($account) {
|
|||
function user_mail($key, &$message, $params) {
|
||||
$language = $message['language'];
|
||||
$variables = user_mail_tokens($params['account'], $language);
|
||||
$message['subject'] .= _user_mail_text($key. '_subject', $language, $variables);
|
||||
$message['body'][] = _user_mail_text($key. '_body', $language, $variables);
|
||||
$message['subject'] .= _user_mail_text($key .'_subject', $language, $variables);
|
||||
$message['body'][] = _user_mail_text($key .'_body', $language, $variables);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -3099,7 +3099,7 @@ function theme_user_signature($signature) {
|
|||
$output = '';
|
||||
if ($signature) {
|
||||
$output .= '<div class="clear">';
|
||||
$output .= '<div>'. '—' .'</div>';
|
||||
$output .= '<div>—</div>';
|
||||
$output .= $signature;
|
||||
$output .= '</div>';
|
||||
}
|
||||
|
@ -3278,7 +3278,7 @@ function user_action_info() {
|
|||
'type' => 'user',
|
||||
'configurable' => FALSE,
|
||||
'hooks' => array(
|
||||
'nodeapi' => array('presave', 'delete','insert', 'update','view'),
|
||||
'nodeapi' => array('presave', 'delete', 'insert', 'update', 'view'),
|
||||
'comment' => array('view', 'insert', 'update', 'delete'),
|
||||
'user' => array('logout'),
|
||||
),
|
||||
|
@ -3288,7 +3288,7 @@ function user_action_info() {
|
|||
'type' => 'user',
|
||||
'configurable' => FALSE,
|
||||
'hooks' => array(
|
||||
'nodeapi' => array('presave', 'delete','insert', 'update','view'),
|
||||
'nodeapi' => array('presave', 'delete', 'insert', 'update', 'view'),
|
||||
'comment' => array('view', 'insert', 'update', 'delete'),
|
||||
'user' => array('logout'),
|
||||
)
|
||||
|
@ -3323,4 +3323,4 @@ function user_block_user_action(&$object, $context = array()) {
|
|||
function user_block_ip_action() {
|
||||
db_query("INSERT INTO {access} (mask, type, status) VALUES ('%s', '%s', %d)", $_SERVER['REMOTE_ADDR'], 'host', 0);
|
||||
watchdog('action', 'Banned IP address %ip', array('%ip' => $_SERVER['REMOTE_ADDR']));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue