entrees block is displaying well and interact with map on mouse hover, map nodes are well drawn centered, map performance improvements, added domain contrib module and configured domain for mobile display
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Functions to support theming in the edlp theme.
|
||||
*/
|
||||
|
||||
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
|
||||
// function edlptheme_preprocess_input(&$vars){
|
||||
// dsm($vars, 'vars');
|
||||
// $vars['attributes']['placeholder'] = "salut";
|
||||
// }
|
||||
|
||||
/**
|
||||
* Implements hook_form_alter
|
||||
*/
|
||||
function edlptheme_form_user_login_form_alter(&$form, FormStateInterface $form_state, $form_id) {
|
||||
// dpm($form_id, 'form_id');
|
||||
// dpm($form, 'form');
|
||||
$form['name']['#attributes']['placeholder'] = (string) $form['name']['#title'];
|
||||
unset($form['name']['#title']);
|
||||
$form['pass']['#attributes']['placeholder'] = (string) $form['pass']['#title'];
|
||||
unset($form['pass']['#title']);
|
||||
}
|
||||
Reference in New Issue
Block a user