Toggle navigation
Home
Hosting
Community
Developers
Github
Web Services (API)
Documentation
References
Report Issue
Download
Installer
Virtual Machine Image
Components
Themes
Member Area
Login
Register
Search
Callback after entity is deleted. Note that you can not use `ossn_get_entity` within this hook as its already deleted. But you can use the guid to delete references in other places.
~~~
<?php
function my_component_init(){
ossn_register_callback('delete', 'entity', 'my_component_cb');
}
function my_component_cb($callback, $type, $params){
//$params['guid'] contains entity guid thats deleted already
}
ossn_register_callback('ossn', 'init', 'my_component_init');
~~~
Entity after delete
Callback after entity is deleted. Note that you can not use `ossn_get_entity` within this hook as its already deleted. But you can use the guid to delete references in other places. ~~~ <?php function my_component_init(){ ossn_register_callback('delete', 'entity', 'my_component_cb'); } function my_component_cb($callback, $type, $params){ //$params['guid'] contains entity guid thats deleted already } ossn_register_callback('ossn', 'init', 'my_component_init'); ~~~
Quick Access
Dashboard
Entity after delete
Entity before delete
Entity created