<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.7 |
+ | CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2018 |
+ | Copyright CiviCRM LLC (c) 2004-2019 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
$id = explode(',', CRM_Utils_Request::retrieve('id', 'CommaSeparatedIntegers', $this, TRUE));
// Check permissions
- $perm = civicrm_api3($entity, 'get', array(
+ $perm = civicrm_api3($entity, 'get', [
'return' => 'id',
- 'options' => array('limit' => 0),
+ 'options' => ['limit' => 0],
'check_permissions' => 1,
- 'id' => array('IN' => $id),
- ));
+ 'id' => ['IN' => $id],
+ ]);
$this->set('id', implode(',', array_keys($perm['values'])));
if ($entity == 'Contact') {