Link to home
Start Free TrialLog in
Avatar of glepiza
glepiza

asked on

Add static text after Drupal7 submit login button

Dear experts,

I´ve been struggling learning the form api to add content to the login form.
I am trying to add markup after the login button, but it keeps appearing above it.

Here is the markup I have so far:

      function adaptivetheme_subtheme_form_alter(&$form, $form_state, $form_id) {
        if($form_id == 'user_login') {
          //Add the required field(s).
            //  
            $form['name']['#prefix'] =  
            '<div id ="welcome">Welcome!</div>';
            
            $form['submit']['#suffix'] =  
            '<div id ="bpf_footer">This is suppose to go below the login button.</div>
            <div id="footer">
            <p>&copy;  All Rights Reserved.</p>
            <div class="legal-class">
                        <a href="terms">Terms of use</a>
                  </div>
            </div>';
         }
      }

Attached goes an screenshot of the login form. Could you please give me any insight?

Thank you very much,

Winter
Captura-de-pantalla-2013-09-24-a.png
ASKER CERTIFIED SOLUTION
Avatar of glepiza
glepiza

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial