Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I would like to force the global petition settings sitewide, therefore i would like to hide the advanced petitionsettings on the petition node add.
I have inserted in the template.php the following code:
function theme_node_form) {
$form['petition']['petition_node_settings']['optional_fields']['#access'] = FALSE;
However by hiding the advanced settings this way, the petition node seems to loose its global settings as well.
Help appreciated
Thanks