Is there a way to add a cron entry and user profile fields via a callback?

Cron entries can be assigned to an add-on, so that they are exported with the XML.

Custom fields must be added manually or added in an install function to be executed on installation of your add-on.
 
Ah, thanks didn't notice that.


By running a query adding them to the table correct?
Not necessarily running a raw query, you should be able to hook into the UserField Model and create them that way.

Nevertheless, it will be directly adding them to the DB as an end result.
 
Top Bottom