I think I'm missing something fundamental here. What's the 'right' way to implement a delete button on the UI-end?
My app has a classic list-type data model: User has wishlist(s) -> wishlist has item(s) -> item has properties. (These are represented in several tables, of course).
The several views are loaded via tpl files using hook_theme(). When the app has a view loaded for any step of the way (looking at an item in a list, for instance) I want to have edit/delete buttons that act on the item. The CRUD methods are in place, they just need to be wired to the button.
In some places in the app, I've exposed methods via
hook_menu(), and that works fine by passing the target to
l() - I'm using this for many of my "View Item" UIs. Is there another way, though? This seems to be exposing a ton of core logic to the address bar if I keep going that route.
In a nutshell: How do I have a button action similar to pseudocode
button.click=$this->bluenose_app_remove_available_property($property->id);? Preferrably without routing through