function _user_entity_diff_additional_options_mail in Diff 7.3
Private callback function to render the mail field.
File
- includes/
user.inc, line 48 - Provide diff functions for the user module.
Code
function _user_entity_diff_additional_options_mail($old_user, $new_user, $context) {
$row = array(
'#name' => t('E-mail address'),
'#states' => array(),
'#weight' => -4,
'#settings' => array(),
);
foreach ($context['states'] as $state) {
$row['#states'][$state] = array(
'#old' => array(
$old_user->mail,
),
'#new' => array(
$new_user->mail,
),
);
}
return $row;
}