I am making a module for EE2 that will house contact information collected from a contact form on the actual site. Currently, it installs just fine and displays the contacts as I want.
However, when it asks what I would like to do with the checkbox-selected rows (delete_selected or edit_selected), both seem to launch the same query string: (see attached image)
/system/index.php?S=609b2381909572d1d6ea5fe15cbe1c7f9d8f6d3c&D=cp&C=addons_modules&M=show_module_cp&module=contact_manager&method=edit_contacts
Am I supposed to create a function (method) in the mcp.contact_manager.php file called ‘Edit Contacts’, then write if-else statements to determine if the action came in as ‘delete’ or ‘edit’? I tried this and it didn’t work.
The tutorial for creating modules seems to leave out how to accomplish edits and deletes.
I’m wondering how I can accomplish this?
Thanks!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.