added links on frontpage field labels
This commit is contained in:
@@ -150,3 +150,24 @@ function materiotheme_theme_suggestions_taxonomy_term_alter(&$suggestions, &$var
|
||||
|
||||
// dsm($suggestions);
|
||||
}
|
||||
|
||||
function materiotheme_theme_suggestions_field_alter(&$suggestions, &$vars){
|
||||
if($vars['element']["#entity_type"] === "commerce_product_variation"
|
||||
&& $vars['element']["#bundle"] === "materio_product_variation_type"
|
||||
&& $vars['element']["#field_name"] === "title"){
|
||||
$test = 'test';
|
||||
$original = $vars['theme_hook_original'];
|
||||
$entity_type = $vars['element']["#entity_type"];
|
||||
$bundle = $vars['element']["#bundle"];
|
||||
$field_name = $vars['element']["#field_name"];
|
||||
$viewmode = $vars['element']['#view_mode'];
|
||||
$suggestions[] = $original.'__'.$entity_type.'__'.$bundle.'__'.$field_name.'__'.$viewmode;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_theme_suggestions_commerce_product_variation().
|
||||
*/
|
||||
// function materiotheme_theme_suggestions_commerce_product_variation_later(&$suggestions, &$vars) {
|
||||
// $test = 'test';
|
||||
// }
|
||||
|
Reference in New Issue
Block a user