studio improvement, fixe #537

This commit is contained in:
2019-12-02 19:38:48 +01:00
parent 4d89162957
commit 55f7def7cb
7 changed files with 137 additions and 40 deletions
@@ -41,12 +41,17 @@ function template_preprocess_edlp_chutier_ui(&$vars){
$remove_url = Chutier::getActionsUrl($node->id(), $vars['uid']);
// build the link
$vars['documents']['#items'][] = array(
array_unshift($vars['documents']['#items'], array(
'#type' => 'container',
'entrees' => array(
'#type' => 'container',
'#attributes'=>['class'=>['entrees']],
'#markup'=>$entrees,
'remove_link' => array(
'#title' => t("Chutier."),
'#type' => 'link',
'#url' => $remove_url,
'#options'=>array(
'attributes' => array(
'data-drupal-link-system-path' => $remove_url->getInternalPath()
),
),
),
'link'=>array(
'#title' => $trunc_title,
@@ -64,17 +69,12 @@ function template_preprocess_edlp_chutier_ui(&$vars){
),
),
),
'remove_link' => array(
'#title' => t("Chutier."),
'#type' => 'link',
'#url' => $remove_url,
'#options'=>array(
'attributes' => array(
'data-drupal-link-system-path' => $remove_url->getInternalPath()
),
),
),
);
'entrees' => array(
'#type' => 'container',
'#attributes'=>['class'=>['entrees']],
'#markup'=>$entrees,
)
));
}
}