⚠ 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

a little bit about callbacks: return true



o_Odin

o_Odin
  • profile picture
  • Member

Posted 28 June 2012 - 04:25 AM

Hello. First of all, thank you for the excellent grocerycrud! He is a very simplified my life)
During development, I used callback_before_insert, callback_before_update and callback_before_delete. Because I use my own functions for these operations (due to storage in the nested sets), then it would be useful to simply return TRUE from callbacks. And in this case, grocerycrud acknowledges the operation cre/upd/del performed. I added it to the library grocerycrud, but can it be done in a simpler way? If this functionality is not provided yet, you may wish to add this?

xxaxxo

xxaxxo
  • profile picture
  • Member

Posted 28 June 2012 - 04:28 AM

callback_insert , callback_update, callback_delete = those callback's skip the operation of the CRUD and only use your callbacks and they are TRUE/FALSE drived.

o_Odin

o_Odin
  • profile picture
  • Member

Posted 28 June 2012 - 04:42 AM

Indeed. I apologize for the stupid question. The theme can be removed.