Posted By

damarev on 01/25/08


Tagged

php extension


Versions (?)

ezpublish remove treenode


 / Published in: eZ Publish
 

  1. <?php
  2. include_once("kernel/classes/datatypes/ezuser/ezusersetting.php");
  3. $existUser=ezUser::currentUser();
  4. if( $existUser )
  5. {
  6. $userId =& $existUser->id();
  7. eZUser::removeUser( $userId );
  8. }
  9.  
  10. $userContentObject =& $existUser->contentObject();
  11. eZContentObjectTreeNode::removeSubtrees( array($userContentObject->attribute("main_node_id")), false );
  12. ezUser::logoutCurrent();
  13. include_once( 'kernel/common/template.php' );
  14. $tpl =& templateInit();
  15. $Result[]=array();
  16. $Result['content'] = $tpl->fetch( "design:cancelSubscripcion.tpl");
  17. ?>

Report this snippet  

You need to login to post a comment.