Advertisement
IchBinsIstDochKlar

lang_object_ids - v 1.0

Aug 14th, 2013
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. function lang_object_ids($ids_array, $type) {
  2.  if(function_exists('icl_object_id')) {
  3.   $res = array();
  4.   foreach ($ids_array as $id) {
  5.    $xlat = icl_object_id($id,$type,false);
  6.    if(!is_null($xlat)) $res[] = $xlat;
  7.   }
  8.   return $res;
  9.  } else {
  10.   return $ids_array;
  11.  }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement