You are here

function _uc_file_display_arrays_equivalent in Ubercart 6.2

Same name and namespace in other branches
  1. 7.3 uc_file/uc_file.admin.inc \_uc_file_display_arrays_equivalent()

TODO: Replace with == operator?

1 call to _uc_file_display_arrays_equivalent()
_uc_file_build_js_file_display in uc_file/uc_file.admin.inc
Shows all possible files in selectable list.

File

uc_file/uc_file.admin.inc, line 485
File administration menu items.

Code

function _uc_file_display_arrays_equivalent($recur, $no_recur) {

  // Different sizes.
  if (count($recur) != count($no_recur)) {
    return FALSE;
  }

  // Check the elements.
  for ($i = 0; $i < count($recur); $i++) {
    if ($recur[$i] != $no_recur[$i]) {
      return FALSE;
    }
  }
  return TRUE;
}