'object', 'subtype' => 'comment', 'joins' => array( "JOIN {$dbprefix}entities e2 ON e.container_guid = e2.guid" ), 'wheres' => array( "e.access_id != e2.access_id" ), 'count' => true ); $count = elgg_get_entities($options); echo elgg_view('admin/upgrades/view', array( 'count' => $count, 'action' => 'action/admin/upgrades/upgrade_comments_access', )); access_show_hidden_entities($access_status);