delete.php 683 B

123456789101112131415161718192021222324
  1. <?php
  2. $page_owner = elgg_get_page_owner_entity();
  3. if (!$page_owner->canEdit()) {
  4. register_error(elgg_echo('au_subgroups:noedit'));
  5. forward($page_owner->getURL());
  6. }
  7. $title = elgg_echo('au_subgroups:subgroups:delete');
  8. // set up breadcrumb navigation
  9. au_subgroups_parent_breadcrumbs($page_owner);
  10. elgg_push_breadcrumb($page_owner->name, $page_owner->getURL());
  11. elgg_push_breadcrumb(elgg_echo('au_subgroups:subgroups:delete'));
  12. $content = elgg_view_form('au_subgroups/delete', array('action' => 'action/groups/delete'));
  13. $body = elgg_view_layout('content', array(
  14. 'title' => $title,
  15. 'content' => $content,
  16. 'filter' => false
  17. ));
  18. echo elgg_view_page($title, $body);