unset_delete
void unset_delete()
Quick Description: Remove the delete operation from the CRUD grid
Remove the delete operation from the CRUD list- A user cannot delete a record from the CRUD
Example:
function employees_unset_delete_test() { $crud = new grocery_CRUD(); $crud->set_table('employees'); $crud->set_relation('officeCode','offices','city'); $crud->display_as('officeCode','Office City'); $crud->set_subject('Employee'); $crud->unset_delete(); $output = $crud->render(); $this->_example_output($output); }
Note: The below example is an iframe so it might appeared with a scroll bar. If you like you can view the example
on a new tab