remove_org.lua 715 B

12345678910111213141516171819202122
  1. --- Remove Org
  2. -- A simple module that calls a consent process on an org to remove it.
  3. -- Depends on the Consent module.
  4. remove_org = {}
  5. --- (Required): setup table containing name and description of the module
  6. remove_org.setup = {
  7. name = "Remove this org",
  8. slug = "remove_org",
  9. desc = "Removes an org if all members consent."
  10. }
  11. --- Initiate function
  12. -- <li><code>self.org</code> (the org the module was called in),</li>
  13. -- <li><code>self.initiator</code> (the user that callced the module),</li>
  14. -- <li><code>self.id</code> (the process id of the module instance)</li>
  15. -- @function initiate
  16. function remove_org:initiate(config, result)
  17. -- call result function
  18. if result then result() end
  19. end