Hi!
First of all thank you all for your work on ldap and drupal. It's simply great.
I installed Ldap_provisioning and the Legal module too, but I can't see the legal block inside the registration page. If I disable Ldap_provisioning, everything works otherwise the page seems to be override by L_P and I can see no more the Terms and Condition agreement.
Do you have some tips to solve this issue?
Thanks a lot
Dam
Comments
Comment #1
miglius commentedLdap provisioning overrides drupal's native registration form. Therefore changes which Legal or other modules injects to the drupal's registration form are not visible in the ldap_provisioning registration form.
Comment #2
dam commentedI made some progress.
Adding these lines into ldapprov.module (~ line 910) makes visibile the legale form and it seems to work too
//legal integration
if (module_exists('legal')) {
$form = array_merge($form,legal_display_fields(legal_get_conditions()));
}
// Main registration form
$form = array_merge($form, _ldapprov_register_form($null));
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Request new account'),
'#weight' => 50
);
It's just alpha code. Use with care.
I'll post here other future changes.
Bye!
Comment #3
dam commentedit works, I confirm
Comment #4
adeelkhan1 commentedHi I tried following cant see anything on register form ? please help
from line 908 ----
else {
$first_name = $values['first_name'];
$last_name = $values['last_name'];
//legal integration
if (module_exists('legal')) {
$form = array_merge($form,legal_display_fields(legal_get_conditions()));
}
// Main registration form
$form = array_merge($form, ldapprov-register($null));
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Request new account'),
'#weight' => 50
);