I've got everything turned off for a certain user role, but Notifications still slaps up an empty fieldset on my node form pages. The fieldset doesn't appear in $form, so I can't just unset it. Thoughts?

Comments

anupom.gogoi’s picture

You can fix the issue by changing the code of _notifications_content_add_disable_field function of notifications_content.module file. Following are the updated code:

/**
* Add disable (skip notifications) field set
*/
function _notifications_content_add_disable_field(&$form) {
  // Add fieldset without affecting any other elements there
  $form['notifications']['#type'] = 'fieldset';
  $form['notifications']['#title'] = t('Notifications');
  $form['notifications']['#access'] = user_access('skip notifications');
  $form['notifications']['#collapsible'] = TRUE;  
  $form['notifications']['notifications_content_disable'] = array(
    '#type'          => 'checkbox',
    '#title'         => t('Do not send notifications for this update.'),
    '#default_value' => 0,
  );  
}

Next, turn off "skip notifications" permission for the user role that you don't want to give permission to see the notification fieldset.

phl3tch’s picture

Cool. thanks.

jose reyero’s picture

Status: Active » Closed (duplicate)

I think it's the same issue, #453578: Empty Notifications fieldset