/** * Save current form reference and sections list, and initialize the cache * * @param array $params Widget params OPTIONAL * @param array $sections Sections list OPTIONAL * * @return void */ public function __construct(array $params = array(), array $sections = array()) { parent::__construct($params, $sections); if (\XLite\Module\CDev\DrupalConnector\Handler::getInstance()->checkCurrentCMS()) { $this->formFieldNames[] = $this->composeFieldName('cms_profile_id'); $this->formFieldNames[] = $this->composeFieldName('drupal_roles'); } }
/** * Save current form reference and initialize the cache * * @param array $params Widget params OPTIONAL * @param array $sections Sections list OPTIONAL * * @return void */ public function __construct(array $params = array(), array $sections = array()) { $this->sections = $this->getProfileMainSections() + $this->sections; parent::__construct($params, $sections); }