We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Custom tab : check if new entry or update in publish_data_db()

Development and Programming

Studio Meta's avatar
Studio Meta
105 posts
15 years ago
Studio Meta's avatar Studio Meta

Hello,

I’m currently working on a module development and I was wondering if there’s any way to check if data posted is an insert or an update in the publish_data_db() function.

Shall I check in DB if entry_id already exists or is there a simple way to do it ?

Any help appreciated, thanks.

       
Studio Meta's avatar
Studio Meta
105 posts
15 years ago
Studio Meta's avatar Studio Meta

Finally I’ve decided to check in the database if entry_id already exists.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.