fixed login redirection from login block and improved design of this block
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user