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

James

Well-known member
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.
 

Renari

Member
Cron entries can be assigned to an add-on, so that they are exported with the XML.
Ah, thanks didn't notice that.

Custom fields must be added manually or added in an install function to be executed on installation of your add-on.
By running a query adding them to the table correct?
 

James

Well-known member
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