Create user attribute on package install
Permalink 1 user found helpful
I'm trying to get my package to create a user attribute when it is created as it is required by the package in order to be fully integrated with the Concrete5 system.
I've tried adding it through SQL but i can't figure out how the concrete5 helper is used for user attributes.
Any ideas?
Thanks!
I've tried adding it through SQL but i can't figure out how the concrete5 helper is used for user attributes.
Any ideas?
Thanks!
Place this function inside your package controller and inside your install() function (or update if you wish to have it there too) add:
$this->_addCustomUserAttributes();