12345678910111213141516171819202122 |
- --- Remove Org
- -- A simple module that calls a consent process on an org to remove it.
- -- Depends on the Consent module.
- remove_org = {}
- --- (Required): setup table containing name and description of the module
- remove_org.setup = {
- name = "Remove this org",
- slug = "remove_org",
- desc = "Removes an org if all members consent."
- }
- --- Initiate function
- -- <li><code>self.org</code> (the org the module was called in),</li>
- -- <li><code>self.initiator</code> (the user that callced the module),</li>
- -- <li><code>self.id</code> (the process id of the module instance)</li>
- -- @function initiate
- function remove_org:initiate(config, result)
- -- call result function
- if result then result() end
- end
|