- // Prepare contants for the template
- define('__MEMBER_SELECTION', ADD_MEMBER_SELECTION_BOX(getConfig('def_refid'), false, true, true, "def_refid"));
-
- switch (getConfig('refid_target')) {
- case 'index':
- define('__DEF_RT_INDEX' , ' selected="selected"');
- define('__DEF_RT_REGISTER', '');
- break;
-
- case 'register':
- define('__DEF_RT_INDEX' , '');
- define('__DEF_RT_REGISTER', ' selected="selected"');
- break;
-
- default: // Invalid config!
- DEBUG_LOG(__FILE__, __LINE__, sprintf("Invalid refid_target %s detected.", getConfig('refid_target')));
- break;
- } // END - switch
+ // Prepare member selection
+ $content['member_selection'] = addMemberSelectionBox(getConfig('def_refid'), false, true, true, 'def_refid');