function _node_entity_diff_additional_options_account in Diff 7.3
Private callback function to render the author field.
2 calls to _node_entity_diff_additional_options_account()
- _node_entity_diff_additional_options_author in includes/
node.inc - Private callback function to render the author field.
- _node_entity_diff_additional_options_revision_author in includes/
node.inc - Private callback function to render the revision_author field.
File
- includes/
node.inc, line 86 - Provide diff functions for the node module.
Code
function _node_entity_diff_additional_options_account($label, $old_author, $new_author, $context, $weight = 0) {
$row = array(
'#name' => $label,
'#states' => array(),
'#weight' => $weight,
'#settings' => array(),
);
foreach ($context['states'] as $state) {
$row['#states'][$state] = array(
'#old' => array(
$old_author ? format_username($old_author) : t('Deleted user'),
),
'#new' => array(
$new_author ? format_username($new_author) : t('Deleted user'),
),
);
}
return $row;
}