Exemplo n.º 1
0
 protected function __trigger()
 {
     $role_field_handle = ASDCLoader::instance()->query(sprintf("SELECT `element_name` FROM `tbl_fields` WHERE `type` = 'memberrole' AND `parent_section` = %d LIMIT 1", extension_Members::memberSectionID()))->current()->element_name;
     $role_id = Symphony::Configuration()->get('new_member_default_role', 'members');
     if (Symphony::Configuration()->get('require_activation', 'members') == 'yes') {
         $role_id = extension_Members::INACTIVE_ROLE_ID;
     }
     $_POST['fields'][$role_field_handle] = $role_id;
     include TOOLKIT . '/events/event.section.php';
     return $result;
 }