Beispiel #1
0
 /**
  * Initialize module
  * @param array $params Collection of parameters
  * @return bool True if success
  */
 public function init(array $params = array())
 {
     // TODO: Should be change to DI in future
     // Set pointer to file service
     $this->fs = $this->system->module('fs');
     // Subscribe to material form created event for custom tab rendering
     Event::subscribe('samsoncms.material.form.created', array($this, 'tabBuilder'));
     // Subscribe to event - add gallery field additional field type
     Event::subscribe('cms_field.select_create', array($this, 'fieldSelectCreate'));
     return parent::init($params);
 }
 public function init(array $params = array())
 {
     Event::subscribe('samson.cms.input.change', array($this, 'saveFieldHandler'));
     return parent::init($params);
 }