Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.2.2
-
Fix Version/s: 4.2.3
-
Component/s: CiviCRM API
-
Labels:None
Description
If you create an API file in the custom php directory, as usual when creating custom php code for an installation, it works and executes fine.
However, the new API is not recognized by API explorer or (more importantly) the Scheduled Jobs editing page.
This means that you can't create a scheduled job from a custom API, unless of course you just add it to the /sites/all/modules/civicrm/api/v3 folder--but that's not really best practice for creating custom code.
More info and a possible workaround here:
http://wiki.civicrm.org/confluence/display/CRMDOC42/How+to+migrate+or+write+an+api