Sitemgr reservations - Add confirmed addressbook option to move confirmed contacts

This commit is contained in:
Nathan Gray 2012-02-14 21:01:03 +00:00
parent 1109aea63a
commit 90ccc3f8fc
2 changed files with 10 additions and 2 deletions

View File

@ -151,7 +151,8 @@ class resources_reserve {
$reg_id = registration_bo::save(array( $reg_id = registration_bo::save(array(
'contact_id' => $contact_id, 'contact_id' => $contact_id,
'timestamp' => time() + ($config['expiry'] * 3600), 'timestamp' => time() + ($config['expiry'] * 3600),
'post_confirm_hook' => 'resources_reserve::confirm' 'post_confirm_hook' => 'resources_reserve::confirm',
'sitemgr_version' => $preserve['sitemgr_version']
), false); ), false);
if(is_numeric($reg_id)) if(is_numeric($reg_id))
{ {

View File

@ -57,7 +57,14 @@ class module_resources_reservation extends sitemgr_module
'rows' => 8, 'rows' => 8,
'cols' => 110 'cols' => 110
) )
) ),
'confirmed_addressbook' => array(
'type' => 'select',
'label' => lang('Confirmed addressbook.').' ('.lang('The anonymous user needs add rights for it!').')',
'options' => array(
'' => lang('None'),
)+registration_bo::get_allowed_addressbooks(registration_bo::CONFIRMED)
),
); );
} }