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.
Hi, i think the users who are allowed to administer the Trackbacks should not be automatically able to change the trackback settings. Therefore I suggest to change the access arguments in the menu hook. Also the permission 'change node trackback setting' doesn't make sense if you don't check it for the settings form, because IMHO you have the possibility to change permissions for content types (and so also for nodes) ... thats why I tagged this as bug report instead of feature request.
At the moment I use this until there is a fix.
$items['admin/content/trackback/settings'] = array(
'title' => 'Settings',
'page arguments' => array('trackback_configure'),
'access arguments' => array('administer trackbacks', 'change node trackback setting'),
'weight' => 10,
'type' => MENU_LOCAL_TASK
);
Comments
Comment #1
osopolarSorry may fault, use only permissions 'change node trackback setting' (or if needed new permission 'administer trackback setting'):
Comment #2
MentalFS CreditAttribution: MentalFS commentedI made that change, but it didn't have any effect, strangely. Edit: Okay, rebuilding the permissions did the trick.
It should be possible, like in comments, to have trackback "moderators" that can publish, unpublish and delete trackbacks and manage the moderation queue. If I understand it right, this is what should happen with this patch. Edit: As I see now, it is exactly what I meant.
Maybe the names of the permissions should change though.