-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.php
More file actions
83 lines (71 loc) · 2.22 KB
/
Copy pathtemplate.php
File metadata and controls
83 lines (71 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
/* Login Page */
function blank_ai_theme() {
$items = array();
// create custom user-login.tpl.php
$items['user_login'] = array(
'render element' => 'form',
'path' => drupal_get_path('theme', 'blank_ai') . '/templates',
'template' => 'user-login',
'preprocess functions' => array(
'blank_ai_preprocess_user_login'
),
);
$items['user_pass'] = array(
'render element' => 'form',
'path' => drupal_get_path('theme', 'blank_ai') . '/templates',
'template' => 'user-pass',
'preprocess functions' => array(
'blank_ai_preprocess_user_pass'
),
);
$items['user_profile_form'] = array(
'render element' => 'form',
'path' => drupal_get_path('theme', 'blank_ai') . '/templates',
'template' => 'user-profile-edit',
);
return $items;
}
/*function blank_ai_form_webform_client_form_alter(&$form, &$form_state, $form_id) {
$form = array();
$form['cities'] = array(
'#title' => t('City'),
'#type' => 'textfield',
'#maxlength' => 60,
'#autocomplete_path' => 'city/autocomplete',
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => 'Submit',
);
var_dump($form);
return $form;
}*/
/*function blank_ai_menu_alter() {
$items['city/autocomplete'] = array(
'page callback' => '_blank_ai_autocomplete',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,
);
var_dump($items);
return $items;
}*/
/*function _blank_ai_autocomplete($string){
$matches = array();
$result = db_select('node', 'n')
->fields('n', array('nid'))
->condition('nid', '%' . db_like($string) . '%', 'LIKE')
->execute();
// save the query to matches
foreach ($result as $row) {
$matches[$row->nid] = check_plain($row->nid);
}
// Return the result to the form in json
drupal_json_output($matches);
}*/
function blank_ai_preprocess_user_login(&$vars) {
$vars['intro_text'] = t('');
}
function blank_ai_preprocess_user_pass(&$vars) {
$vars['intro_text'] = t('Introduce tu NIF/NIE o correo electrónico para que podamos mandarte un correo de restablecimiento de la contraseña. ¡Gracias!');
}