mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-06-28 06:58:43 +02:00
Add tags and display for plugins on GLPI External links & minor fixes
This commit is contained in:
4
hook.php
4
hook.php
@ -87,8 +87,8 @@ function plugin_example_giveItem($type,$ID,$data,$num) {
|
||||
switch ($table.'.'.$field) {
|
||||
case "glpi_plugin_example_examples.name" :
|
||||
$out = "<a href='".Toolbox::getItemTypeFormURL('PluginExampleExample')."?id=".$data['id']."'>";
|
||||
$out .= $data["ITEM_$num"];
|
||||
if ($_SESSION["glpiis_ids_visible"] || empty($data["ITEM_$num"])) {
|
||||
$out .= $data[$num][0]['name'];
|
||||
if ($_SESSION["glpiis_ids_visible"] || empty($data[$num][0]['name'])) {
|
||||
$out .= " (".$data["id"].")";
|
||||
}
|
||||
$out .= "</a>";
|
||||
|
Reference in New Issue
Block a user