You are here

function upload_element_equals in Upload element 6

Simple helper function to compare to file elements

Parameters

mixed $a file object to compare:

mixed $b file object to compare:

Return value

bool

1 call to upload_element_equals()
_upload_element_action_field in ./upload_element.module
Private function to generate the options that go with the upload element

File

./upload_element.module, line 282
A module that provides two new elements to the FAPI for file handling.

Code

function upload_element_equals($a = FALSE, $b = FALSE) {
  if (is_object($a) && is_object($b)) {
    return $a->fid == $b->fid;
  }
  return FALSE;
}