function _civicrm_api3_address_create_spec(&$params) {
$params['location_type_id']['api.required'] = 1;
$params['contact_id']['api.required'] = 1;
- $params['street_parsing'] = array('title' => 'optional param to indicate you want the street_address field parsed into individual params');
+ $params['street_parsing'] = array(
+ 'title' => 'Street Address Parsing',
+ 'description' => 'Optional param to indicate you want the street_address field parsed into individual params',
+ );
$params['world_region'] = array(
'title' => ts('World Region'),
'name' => 'world_region',
$params['custom_group_id']['api.required'] = 1;
$params['is_active']['api.default'] = 1;
$params['option_type'] = array(
- 'title' => 'This (boolean) field tells the BAO to create an option group for the field if the field type is appropriate',
+ 'title' => 'Option Type',
+ 'description' => 'This (boolean) field tells the BAO to create an option group for the field if the field type is appropriate',
'api.default' => 1,
'type' => CRM_Utils_Type::T_BOOLEAN,
);
* Array of parameters determined by getfields.
*/
function _civicrm_api3_domain_get_spec(&$params) {
- $params['current_domain'] = array('title' => "get loaded domain");
+ $params['current_domain'] = array(
+ 'title' => "Current Domain",
+ 'description' => "get loaded domain",
+ );
}
/**
$params['end'] = array('title' => 'End Date');
$params['geocoding'] = array('title' => 'Geocode address?');
$params['parse'] = array('title' => 'Parse street address?');
- $params['throttle'] = array('title' => 'Throttle? if enabled, geo-codes at a slow rate');
+ $params['throttle'] = array(
+ 'title' => 'Throttle?',
+ 'description' => 'if enabled, geo-codes at a slow rate',
+ );
}
/**
$params['membership_type_id']['api.aliases'] = array('membership_type');
$params['status_id']['api.aliases'] = array('membership_status');
$params['skipStatusCal'] = array(
- 'title' => 'Skip status calculation. By default this is 0 if id is not set and 1 if it is set.',
+ 'title' => 'Skip status calculation',
+ 'description' => 'By default this is 0 if id is not set and 1 if it is set.',
);
$params['num_terms'] = array(
- 'title' => 'Number of terms to add/renew. If this parameter is passed, dates will be calculated automatically. If no id is passed (new membership) and no dates are given, num_terms will be assumed to be 1.',
+ 'title' => 'Number of terms',
+ 'description' => 'Terms to add/renew. If this parameter is passed, dates will be calculated automatically. If no id is passed (new membership) and no dates are given, num_terms will be assumed to be 1.',
'type' => CRM_Utils_Type::T_INT,
);
}
function _civicrm_api3_membership_get_spec(&$params) {
$params['membership_type_id']['api.aliases'] = array('membership_type');
$params['active_only'] = array(
- 'title' => 'Only retrieve active memberships',
+ 'title' => 'Active Only',
+ 'description' => 'Only retrieve active memberships',
'type' => CRM_Utils_Type::T_BOOLEAN,
);
}
* Modifiable list of fields allowed for the PledgePayment.get action.
*/
function civicrm_api3_pledge_payment_get_spec(&$params) {
- $params['option.create_new'] = array('title' => "Create new field rather than update an unpaid payment");
+ $params['option.create_new'] = array(
+ 'title' => "Create New",
+ 'description' => "Create new field rather than update an unpaid payment",
+ 'type' => CRM_Utils_Type::T_BOOLEAN,
+ );
}
* @param array $params
*/
function _civicrm_api3_setting_getfields_spec(&$params) {
- $params['filters'] = array('title' => 'Fields you wish to filter by e.g. array("group_name" => "CiviCRM Preferences")');
- $params['component_id'] = array('title' => 'id of relevant component');
- $params['profile'] = array('title' => 'profile is passed through to hooks & added to cachestring');
+ $params['filters'] = array(
+ 'title' => 'Filters',
+ 'description' => 'Fields you wish to filter by e.g. array("group_name" => "CiviCRM Preferences")',
+ );
+ $params['component_id'] = array(
+ 'title' => 'Component ID',
+ 'description' => 'ID of relevant component',
+ );
+ $params['profile'] = array(
+ 'title' => 'Profile',
+ 'description' => 'Profile is passed through to hooks & added to cachestring',
+ );
}
/**
* @param array $params
*/
function _civicrm_api3_setting_revert_spec(&$params) {
- $params['name'] = array('title' => 'Setting Name belongs to');
- $params['component_id'] = array('title' => 'id of relevant component');
+ $params['name'] = array(
+ 'title' => 'Name',
+ 'description' => 'Setting Name belongs to',
+ );
+ $params['component_id'] = array(
+ 'title' => 'Component ID',
+ 'description' => 'ID of relevant component',
+ );
$params['domain_id'] = array(
'api.default' => 'current_domain',
'description' => 'Defaults may differ by domain - if you do not pass in a domain id this will default to the current domain'
* @param array $params
*/
function _civicrm_api3_setting_fill_spec(&$params) {
- $params['name'] = array('title' => 'Setting Name belongs to');
- $params['component_id'] = array('title' => 'id of relevant component');
+ $params['name'] = array(
+ 'title' => 'Name',
+ 'description' => 'Setting Name belongs to',
+ );
+ $params['component_id'] = array(
+ 'title' => 'Component ID',
+ 'description' => 'ID of relevant component',
+ );
$params['domain_id'] = array(
'api.default' => 'current_domain',
'title' => 'Setting Domain',
* Array of parameters determined by getfields.
*/
function _civicrm_api3_system_flush_spec(&$params) {
- $params['triggers'] = array('title' => 'rebuild triggers (boolean)');
- $params['session'] = array('title' => 'refresh sessions (boolean)');
+ $params['triggers'] = array(
+ 'title' => 'Triggers',
+ 'description' => 'rebuild triggers (boolean)',
+ 'type' => CRM_Utils_Type::T_BOOLEAN,
+ );
+ $params['session'] = array(
+ 'title' => 'Sessions',
+ 'description' => 'refresh sessions (boolean)',
+ 'type' => CRM_Utils_Type::T_BOOLEAN,
+ );
}
/**
*/
function _civicrm_api3_uf_field_create_spec(&$params) {
$params['option.autoweight'] = array(
- 'title' => "Automatically adjust weights in UFGroup to align with UFField",
+ 'title' => "Auto Weight",
+ 'description' => "Automatically adjust weights in UFGroup to align with UFField",
'type' => CRM_Utils_Type::T_BOOLEAN,
'api.default' => TRUE,
);