Hiding Items In Allowed values list

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

Call to undefined function ereg() in eval() (line 2 of /var/www/intranet/modules/php/php.module(80)

Hi,

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).

Maintenance mode not working after upgrading to 7.73

I suspect this is because the website server crashed while ftp to 7.73 was in progress.

Any suggestions about how to fix this?

Views complex table

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! 

https://drive.google.com/file/d/1BNpHNYMoVrOI5CMGaQuMj50t12GvGkdr/view?u...

Error while generating sitemap xml Drupal 7

I tried to generate a sitemap for my drupal website ( version 7) using XML SITEMAP module. Here is the module link: https://www.drupal.org/project/xmlsitemap.

After installing and configuring the sitemap, I got this error appeared on sitemap file:

I got error when generating sitemap Drupal 7

I checked all modules files in order to delete the whitespaces outside of php tags, but I didn’t find anything.

Problem to create new block

Hi I have a problem when I try to create a new block (Drupal 7.63); see below the error message:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x