optional steps blueprints - change statuses label
This commit is contained in:
parent
8da0fb0e36
commit
83cf6beea7
36 changed files with 129 additions and 95 deletions
10
public/site/config/hooks/delete-steps.php
Normal file
10
public/site/config/hooks/delete-steps.php
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
|
||||
return function($page) {
|
||||
if ($page->template() == "project") {
|
||||
kirby()->impersonate('kirby');
|
||||
foreach ($page->children() as $child) {
|
||||
$child->delete();
|
||||
}
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue