mirror of
https://github.com/e107inc/e107.git
synced 2025-08-19 21:02:09 +02:00
Admin routine copy callback
This commit is contained in:
@@ -4054,7 +4054,9 @@ class e_admin_ui extends e_admin_controller_ui
|
||||
protected function handleListCopyBatch($selected)
|
||||
{
|
||||
// Batch Copy
|
||||
$this->getTreeModel()->copy($selected);
|
||||
$res = $this->getTreeModel()->copy($selected);
|
||||
// callback
|
||||
$this->afterCopy($res, $selected);
|
||||
// move messages to default stack
|
||||
$this->getTreeModel()->setMessages();
|
||||
// send messages to session
|
||||
@@ -4820,6 +4822,16 @@ class e_admin_ui extends e_admin_controller_ui
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* User defined after-update logic
|
||||
* @param mixed $result
|
||||
* @param array $selected
|
||||
* @return void
|
||||
*/
|
||||
public function afterCopy($result, $selected)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Create - send JS to page Header
|
||||
* @return none
|
||||
|
||||
Reference in New Issue
Block a user