1
|
<?php
|
2
|
/**
|
3
|
* @file
|
4
|
* Custom theme implementation to display the 'Request new password' link below
|
5
|
* the 'Log in' button.
|
6
|
*
|
7
|
* @author w.addink <w.addink@eti.uva.nl>
|
8
|
*/
|
9
|
?>
|
10
|
<div id="<?php print $block_html_id; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>
|
11
|
|
12
|
<?php print render($title_prefix); ?>
|
13
|
<?php if ($block->subject): ?>
|
14
|
<h2<?php print $title_attributes; ?>><?php print $block->subject ?></h2>
|
15
|
<?php endif;?>
|
16
|
<?php print render($title_suffix); ?>
|
17
|
|
18
|
<div class="content"<?php print $content_attributes; ?>>
|
19
|
|
20
|
<?php
|
21
|
|
22
|
$elements = drupal_get_form('user_login_block');
|
23
|
|
24
|
// Add colon to labels for D5 look.
|
25
|
$elements['name']['#title'] .= ':';
|
26
|
$elements['pass']['#title'] .= ':';
|
27
|
|
28
|
/*
|
29
|
* drupal_render seems to add html to the elements array
|
30
|
* and instead of printing what is returned from drupal_render
|
31
|
* you can use the added html in ['#children'] elements of the arrays
|
32
|
* to build the form in the order you want.
|
33
|
*/
|
34
|
$rendered = drupal_render($elements);
|
35
|
|
36
|
$output = '<form action="' . $elements['#action'] .
|
37
|
'" method="' . $elements['#method'] .
|
38
|
'" id="' . $elements['#id'] .
|
39
|
'" accept-charset="UTF-8"><div>';
|
40
|
|
41
|
$output .= $elements['name']['#children'];
|
42
|
$output .= $elements['pass']['#children'];
|
43
|
$output .= $elements['form_build_id']['#children'];
|
44
|
$output .= $elements['form_id']['#children'];
|
45
|
$output .= $elements['actions']['#children'];
|
46
|
$output .= $elements['links']['#children'];
|
47
|
$output .= '</div></form>';
|
48
|
print $output;
|
49
|
?>
|
50
|
</div>
|
51
|
</div>
|