Non-deletable records in module

edited September 2012 in Feature Requests
Hello everyone.
I have module records which are containing the page 'content'( the main text). For each page I have 1 record. I would like to prevent user from being able to delete it or create new records in this module( by default all pages will have already their records).
'table_actions' => array('EDIT')
does not do what I need
Any suggestions?

Comments

  • edited 5:43AM
    You can use the "on_before_delete" method hook on your model to check. The blog_categories_model does this so it doesn't remove the Uncategorized category.
Sign In or Register to comment.