X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FConstant.php;h=1b7363e4b01e811f91d847472f21ebcf4897f0de;hb=abb4c5978811c3463251e4d0ebde5d3db4c0d34a;hp=5270ca68dcbba29021c70d51c3be0e80d6a3d279;hpb=7d86179d7d8e91160bbb5e6643fa265198a99a2d;p=civicrm-core.git
diff --git a/api/v3/Constant.php b/api/v3/Constant.php
index 5270ca68dc..1b7363e4b0 100644
--- a/api/v3/Constant.php
+++ b/api/v3/Constant.php
@@ -1,5 +1,4 @@
*
activityStatus
@@ -93,9 +97,8 @@ function _civicrm_api3_constant_deprecation() {
* worldRegion
* wysiwygEditor
*
+ *
* @return array
- * @example ConstantGet.php
- * {@getfields constant_get}
*/
function civicrm_api3_constant_get($params) {
@@ -137,6 +140,8 @@ function civicrm_api3_constant_get($params) {
}
/**
+ * Adjust metadata for constant get action.
+ *
* @param array $params
*/
function _civicrm_api3_constant_get_spec(&$params) {
@@ -183,12 +188,12 @@ function _civicrm_api3_constant_get_spec(&$params) {
'worldRegion',
'wysiwygEditor',
);
- $params = (array(
- 'name' => array(
+ $params = array(
+ 'name' => array(
'title' => 'Constant Name',
'name' => 'name',
'api.required' => 1,
- 'options' => array_combine($options, $options),
- ))
+ 'options' => array_combine($options, $options),
+ ),
);
}