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