I trying to add an Action in CiviRules. I am trying to follow the API add instructions.
Here is what I did 1. Copied the file org.civicoop.civirules/CRM/CivirulesActions/Activity/UpdateStatus.php (this looked like an easy edit to do what I wanted--update a field) and created a new file in org.civicoop.civirules/CRM/CivirulesActions/Contributions/UpdateInstallments.php
- I edited the copied file (edits in bold)
` * @license http://www.gnu.org/licenses/agpl-3.0.html */
class CRM_CivirulesActions_Contribution_UpdateInstallments extends CRM_CivirulesActions_Generic_Api {
/** * Method to get the api entity to process in this CiviRule action * * @access protected * @abstract */ protected function getApiEntity() { return 'Contribution'; }`
But it does not show up in the Rules option list. I tried a cache clear. What am I doing wrong?