fixed readonline linnk in simplenews template
This commit is contained in:
@@ -187,6 +187,23 @@ function materiotheme_preprocess_page(&$vars){
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Prepares variables for email template.
|
||||
*
|
||||
* Default template: email.html.twig.
|
||||
*
|
||||
* @param array $variables
|
||||
* An associative array containing:
|
||||
* - email: An associative array containing the Email object.
|
||||
*/
|
||||
function materiotheme_preprocess_email(&$variables) {
|
||||
$email = $variables['email'];
|
||||
$variables['body'] = $email->getBody();
|
||||
$variables = array_merge($variables, $email->getVariables());
|
||||
}
|
||||
|
||||
|
||||
// function materiotheme_preprocess_node(&$vars){
|
||||
// $node = $vars['elements']['#node'];
|
||||
// $options = ['absolute' => TRUE];
|
||||
|
Reference in New Issue
Block a user