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