fixed login redirection from login block and improved design of this block

This commit is contained in:
Bachir Soussi Chiadmi
2015-07-02 19:24:43 +02:00
parent 22146c2778
commit 3220ed8e4b
7 changed files with 1707 additions and 1268 deletions

View File

@@ -204,25 +204,12 @@ function materio_user_form_alter(&$form, &$form_state, $form_id) {
$form['actions']['#type'] = "container";
$form['actions']['submit']['#value'] = t('Join');
// $form['termsofservices'] = array(
// '#type' => 'checkbox',
// '#title' => t('I accept') .' '. l(t('the materiO terms of services'), 'node/11183'),
// '#required' => true,
// );
// $form['#submit'][] = "materio_user_user_register_form_submit";
}
if($form_id == "user_login" ){
// dsm($form);
$form['actions']['#type'] = "container";
// $form['actions']['submit']['#value'] = t('Join');
// if( $_GET['q'] == 'node/11187' ){
// $form['#submit'][] = "materio_user_user_login_form_submit";
// }
}
# https://drupal.org/comment/6293810#comment-6293810