[freeside-commits] freeside/fs_selfservice/drupal signup.inc, 1.2, 1.3
Mark Wells
mark at wavetail.420.am
Tue Sep 28 22:40:14 PDT 2010
Update of /home/cvs/cvsroot/freeside/fs_selfservice/drupal
In directory wavetail.420.am:/tmp/cvs-serv10362/fs_selfservice/drupal
Modified Files:
signup.inc
Log Message:
svc_pbx in signup server, RT#9380
Index: signup.inc
===================================================================
RCS file: /home/cvs/cvsroot/freeside/fs_selfservice/drupal/signup.inc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -d -r1.2 -r1.3
--- signup.inc 28 Sep 2010 23:12:52 -0000 1.2
+++ signup.inc 29 Sep 2010 05:40:12 -0000 1.3
@@ -66,6 +66,7 @@
'payby_longname',
'part_pkg',
'default_pkgpart',
+ 'signup_service',
);
$signup_info = signup_info($keys);
dkpr($signup_info);
@@ -249,6 +250,11 @@
'#value' => $pkgs[0]['pkgpart'],
)
),
+ );
+
+ switch($signup_info['signup_service']) {
+ case 'svc_acct':
+ $form['package'] += array(
'username'=> array(
'#type' => 'textfield',
'#title' => t('Username'),
@@ -260,8 +266,12 @@
'#size' => 20,
'#required'=>1,
'#process'=> array('freeside_expand_password_confirm'),
- ),
+ )
);
+ break;
+ case 'svc_pbx':
+ break; // nothing yet implemented
+ }
$form['package']['pkgpart']['#default_value'] = $signup_info['default_pkgpart'];
$form['submit'] = array(
@@ -333,7 +343,11 @@
}
else {
drupal_set_message(t("Signup successful!"),'status');
- $form_state['redirect'] = variable_get('freeside_redirect_after_signup','/');
+ $form_state['redirect'] = array(
+ variable_get('freeside_redirect_after_signup','/'),
+ //query string would go here
+ //'custnum='.$response['custnum'].'&svcnum='.$response['svcnum'],
+ );
}
}
More information about the freeside-commits
mailing list