You are here

function _diff_default_header in Diff 7.2

Same name and namespace in other branches
  1. 6.2 diff.pages.inc \_diff_default_header()
  2. 6 diff.module \_diff_default_header()
  3. 7.3 diff.pages.inc \_diff_default_header()

Helper function to create default 'header' array for diff table.

2 calls to _diff_default_header()
diff_diffs_show in ./diff.pages.inc
Create output string for a comparison of 'node' between versions 'old_vid' and 'new_vid'.
diff_node_form_build_preview_changes in ./diff.module
Callback if 'View changes' is pressed.

File

./diff.pages.inc, line 428
Menu callbacks for hook_menu().

Code

function _diff_default_header($old_header = '', $new_header = '') {
  return array(
    array(
      'data' => $old_header,
      'colspan' => 2,
    ),
    array(
      'data' => $new_header,
      'colspan' => 2,
    ),
  );
}