home sections labels link made active
This commit is contained in:
@@ -331,3 +331,24 @@ function materiotheme_preprocess_printable(array &$variables) {
|
||||
// $variables['attributes']['src'] = '/themes/custom/materiotheme/assets/img/blank.gif';
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
function materiotheme_preprocess_field__node__field_a_database__frontpage(array &$variables) {
|
||||
if ($variables['logged_in']) {
|
||||
$variables['label_link'] = array(
|
||||
"href" => '/' . $variables['element']['#language'] . '/base'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function materiotheme_preprocess_field__node__field_blabla__frontpage(array &$variables) {
|
||||
$variables['label_link'] = array(
|
||||
"href" => '/' . $variables['element']['#language'] . '/blabla'
|
||||
);
|
||||
}
|
||||
|
||||
function materiotheme_preprocess_field__node__field_showrooms__frontpage(array &$variables) {
|
||||
$variables['label_link'] = array(
|
||||
"href" => '/' . $variables['element']['#language'] . '/showrooms'
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user