Hey guys,

I'm interested in running some extra code when a new object for a custom
content type is created. I've seen there's a method called beforeSave() but
I was wondering how this is used and is there a method that is executed only
when the object is created for the first time? I only want to run this extra
code when it's created.

Any help or pointers would be appreciated,

Cheers,

-----
I got bored, so...  http://philkemp.white.prohosting.com/farcry/
http://philkemp.white.prohosting.com/farcry/ 
-- 
View this message in context: 
http://old.nabble.com/beforeSave%28%29-method-in-content-types-tp26195796s621p26195796.html
Sent from the FarCry - Dev mailing list archive at Nabble.com.


--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---

Reply via email to