public static function em_object_get_default_search($defaults, $array, $super_defaults) { if (!empty($defaults['location'])) { //check that this location ID is the original one, given that all events of any language will refer to the location_id of the original $EM_Location = em_get_location($defaults['location']); if (!EM_ML::is_original_location($EM_Location)) { $defaults['location'] = EM_ML::get_original_location_id($EM_Location); } } return $defaults; }