restored simplenews footer home block
This commit is contained in:
@@ -264,6 +264,28 @@ function materiotheme_form_user_login_form_alter(&$form, FormStateInterface $for
|
||||
unset($form['pass']['#title']);
|
||||
}
|
||||
|
||||
// "simplenews_subscriptions_block_footersimplenewssubscriptionblock"
|
||||
function materiotheme_form_simplenews_subscriptions_block_footersimplenewssubscriptionblock_alter(&$form, FormStateInterface $form_state, $form_id) {
|
||||
$form['#cache']['max-age'] = 0;
|
||||
// unset($form['mail']['widget'][0]['#title']);
|
||||
// $form['mail']['widget']['#attributes']['placeholder'][] = "Bon alors !";
|
||||
// $form['mail']['widget']['#attributes']['placeholder'] = (string) $form['mail']['widget']['#title'];
|
||||
$form['mail']['widget'][0]['value']['#placeholder'] = (string) $form['mail']['widget'][0]['value']['#title'];
|
||||
$form['mail']['widget'][0]['value']['#size'] = 35;
|
||||
unset($form['mail']['widget'][0]['value']['#title']);
|
||||
// unset($form['mail']['widget']['#description']);
|
||||
|
||||
// $form['subscriptions']['widget']['#required']
|
||||
// unset($form['subscriptions']['widget']['#title']);
|
||||
// unset($form['subscriptions']['widget']['#description']);
|
||||
$t="t";
|
||||
}
|
||||
|
||||
function materiotheme_preprocess_block(&$variables) {
|
||||
if ($variables['plugin_id'] == 'simplenews_subscription_block') {
|
||||
$variables['#cache']['max-age'] = 0;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Implements hook_theme_suggestions_HOOK_alter().
|
||||
*/
|
||||
|
Reference in New Issue
Block a user