heck to see if the form already has options before attempting to add
mikesmullin - January 4, 2008 - 21:53
| Project: | Override Node Options |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
if the options are already there, this is unnecessary. in my case, another module is trying to specifically hide them on a specific node form from specific users.
I resolved this by checking for $form['options'] before adding it.
(see attached)
| Attachment | Size |
|---|---|
| override_node_options.module.patch | 1.07 KB |
