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.

Files: 
CommentFileSizeAuthor
#1 1961420-ds-classes_alter-1.patch1.31 KBmarkcarver

Comments

markcarver’s picture

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

Ping

markcarver’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.