I have overwritten my login page with a file named page--user--login.tpl.php
. Now I have this:
<div class="main-container container">
<div class="row-fluid">
<section<?php print $content_column_class; ?>>
<a id="main-content"></a>
<h1>Xmed.be Stocksolutions</h1>
<p>"We help you Xchange your stock"</p>
<?php print render($title_suffix); ?>
<?php print $messages; ?>
<?php if (!empty($page['help'])): ?>
<?php print render($page['help']); ?>
<?php endif; ?>
<?php if (!empty($action_links)): ?>
<ul class="action-links"><?php print render($action_links); ?></ul>
<?php endif; ?>
<?php print render($page['content']); ?>
<a href="user/register">NO ACCOUNT? REGISTER</a>
<a href="user/password">FORGOT PASSWORD?</a>
</section>
</div>
</div>
As you can see I added two links at the end (register and password). But I would like them to be inside $page['content'], so that they are in the section. How can I edit the $content variable, loop through it or something?
UPDATE:
Now I've added in my template.php:
function hook_form_user_login_alter(&$form, &$form_state, $form_id) {
var_dump('test');
}
But I'm not getting test around my form (also looked in html).
I've also already tried:
function hook_form_alter(&$form, &$form_state, $form_id) {
dpm($form);
}
But no result or something ...