Commit eb45c3bf authored by jaapjansma's avatar jaapjansma

Fixed regression after import/export api change

parent 4b48308d
......@@ -25,7 +25,7 @@ function civicrm_api3_form_processor_default_data_input_converttitletoname($para
* @return void
* @see http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
function _civicrm_api3_form_processor_input_converttitletoname_spec(&$spec) {
function _civicrm_api3_form_processor_default_data_input_converttitletoname_spec(&$spec) {
$spec['title'] = array(
'title' => E::ts('Title'),
'type' => CRM_Utils_Type::T_STRING,
......
......@@ -10,6 +10,12 @@ use CRM_FormProcessor_ExtensionUtil as E;
* @see http://wiki.civicrm.org/confluence/display/CRMDOC/API+Architecture+Standards
*/
function _civicrm_api3_form_processor_instance_Import_spec(&$spec) {
$spec['file'] = array(
'title' => E::ts('Specification File'),
'type' => CRM_Utils_Type::T_STRING,
'description' => E::ts('If a file path is given, the JSON configuration will be imported from there'),
'api.required' => false
);
}
/**
......@@ -53,20 +59,3 @@ function civicrm_api3_form_processor_instance_Import($params) {
}
return $returnValues;
}
/**
* FormProcessorInstance.Import API specification (optional)
* This is used for documentation and validation.
*
* @param array $spec description of fields supported by this API call
* @return void
* @see http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
function _civicrm_api3_form_processor_instance_export_spec(&$spec) {
$spec['file'] = array(
'title' => E::ts('Specification File'),
'type' => CRM_Utils_Type::T_STRING,
'description' => E::ts('If a file path is given, the JSON configuration will be imported from there'),
'api.required' => false
);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment