function bat_type_diff_body_rows in Booking and Availability Management Tools for Drupal 7
Creates an array of rows which represent the difference between types.
Parameters
object $old_type: BatType for comparison which will be displayed on the left side.
object $new_type: BatType for comparison which will be displayed on the right side.
bool $state: The state to render for the diff.
1 call to bat_type_diff_body_rows()
- bat_type_compare_revisions in modules/
bat_unit/ bat_type.diff.inc - Create a comparison for the type between versions 'old_revision_id' and 'new_revision_id'.
File
- modules/
bat_unit/ bat_type.diff.inc, line 157
Code
function bat_type_diff_body_rows($old_type, $new_type, $state = 'raw') {
$context = array(
'states' => array(
$state,
),
'view_mode' => 'diff_standard',
);
return diff_entity_body_rows('bat_type', $old_type, $new_type, $context);
}