⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

How to override the message after return FALSE in callback_before_delete?



Apostle
  • profile picture
  • Member

Posted 29 December 2012 - 11:12 AM

Merry Christmas and Happy New Year.
I want to change the message after removing the top of the table. Like this:
[php]
function index()
{
...
$crud->callback_before_delete(array($this, '_region_before_delete'));
...
}

function _region_before_delete($primary_key)
{
...
$this->form_validation->set_message('delete_error_message', $primary_key.' To ensure reference (referential, relational, many-to-one relationship) integrity of the database can not be removed. This field is used in the child table.');
...
}
[/php]
Thanks.