'user', 'limit' => 0, ); $batch = new ElggBatch('elgg_get_entities', $options); foreach ($batch as $entity) { _elgg_invalidate_query_cache(); if (is_array($entity->location)) { $entity->location = implode(', ', $entity->location); } } elgg_set_ignore_access($ia);