I am new to Drupal and have been asked to modify a node type that has a field with an allowed values list. The items in this list have been used for some time and I was asked to hide several of the existing items and related keys and add several new items. Adding the new items is easy enough but I am struggling with hiding some of the existing items. They do not want to modify the data that has been entered for historical purposes but don't want users to have several of the options going forward. Found a few items online and I tried adding to the form alter function in the template.php
I moved my intranet (Drupal 7) from a php 5.6 server to a php 7.4. I updated modules that were giving errors and the core to the last 7.x version, but when I try to open the website a general error apperas on the screen, and in the log I can see:
php Error: Call to undefined function ereg() in eval() (line 2 of /var/www/intranet/modules/php/php.module(80) : eval()'d code).
Do you now how I can build complex table in Drupal? I want to get something like this (in upload picture). I have nodes with fields: nid, code, name, date, sum. Thanks!