What I am trying to achieve - is to write a custom module(CiviCRM extension)/script, which should update( Run small SQL query to update about a missing "Module" )
Basically - what the script will do(as civicrm is used in different CMS), so - CMS independently, update a row in
And, because of the project requirement - I need to make a script(extension), as there are multiple sites, and they are managed with git, and automated system.
I could not find, or not familiar with CiviCRM specifications, what to write/which extension to make?
What to do to achieve this? CiviCRM extension is the only way, as CiviCRM is used in different CMS systems, they have same CiviCRM tables in database, however, the CMS extension( like Drupal update hook will not work, as there could be wordpress sites too).
Edit : With
civix generate:upgrade, inside generated module, it has a skeleton upgrade script. I want to keep a check(if option value is set false, then do not fire
Because of no Documentation on CiviCRM classes, and functions, return values, objects, I can not understand, how to write, and call - check, a particular row.
My question: What is the retuen value of
CiviCRM_Core_BAO, how to determine, which value they send. Because of no-documentation, I am not sure - if I am asking right question