1. Notifying admin about new groups.
One way around is sending a message to particular email whenever new group is added. This is just a raw solution to give you an idea what can be done and where.
File to edit: ow_plugins/groups/controllers/groups.php
Function within the file: public function process()
Where to add: right before
return $group;
Code to add:
/**
* Custom code
* sends youremail@gmail.com an email with the title of the added group
*/
$mail = OW::getMailer()->createMail();
$mail->addRecipientEmail("youremail@gmail.com");
$mail->setSubject("New group was created");
$mail->setTextContent("$group->title");
OW::getMailer()->send($mail);
/**
* End of Custom code
* sends youremail@gmail.com an email with the title of the added group
*/
--------------------------
Explanation: custom piece of code will send an email using standard mail() function within PHP. More information:
http://php.net/manual/en/function.mail.php
Solution tested on 1.6.0 only.
NOTE: all custom code modifications will be erased if you update the software in future. Keep track of what and where you are editing, so that you can apply the changes after update again.
--------------------------
2. Approval tool.
This is more complex modification and unfortunately I can not provide detailed instructions on how this can be achieved.