I would love to provide some "supported" classes in a feature I'm building and not allow users to delete them from the classes UI page. The only way I know how to do this is to use a drupal_alter on that array before it returns the classes array to the managed display form. Will attach a patch shortly.

CommentFileSizeAuthor
#1 1961420-ds-classes_alter-1.patch1.31 KBmarkhalliwell
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

markhalliwell’s picture

Status: Active » Needs review
FileSize
1.31 KB
markhalliwell’s picture

Ping

markhalliwell’s picture

Priority: Normal » Major

I really would like to stop having to patch this. It's a really simple fix.

swentel’s picture

Version: 7.x-2.x-dev » 8.x-2.x-dev
Priority: Major » Normal
Status: Needs review » Patch (to be ported)

Committed and pushed, thanks! Moving to 8.x-2.x

aspilicious’s picture

Assigned: Unassigned » aspilicious
Issue tags: +sprint-ghent
aspilicious’s picture

Assigned: aspilicious » Unassigned
Status: Patch (to be ported) » Fixed

Part of the plugin branch now :)

Automatically closed -- issue fixed for 2 weeks with no activity.