Example #1
0
function plugin_mreporting_MassiveActionsFieldsDisplay($options = array())
{
    $table = $options['options']['table'];
    $field = $options['options']['field'];
    $linkfield = $options['options']['linkfield'];
    if ($table == getTableForItemType($options['itemtype'])) {
        // Table fields
        switch ($table . "." . $field) {
            case "glpi_plugin_mreporting_configs.show_label":
                PluginMreportingConfig::dropdownLabel('show_label');
                return true;
                break;
            case "glpi_plugin_mreporting_configs.graphtype":
                Dropdown::showFromArray("graphtype", array('GLPI' => 'GLPI', 'PNG' => 'PNG', 'SVG' => 'SVG'));
                return true;
                break;
        }
    }
    // Need to return false on non display item
    return false;
}