Closed (fixed)
Project:
Salsa Entity
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Apr 2013 at 14:39 UTC
Updated:
1 May 2013 at 16:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
berdirthe is_array() check is IMHO unecessary.
The loop seems unecessarly complicated, why not a foreach ($required as $key => $field) {
// if hidden, unset
}
?
Use #access = FALSE instead, then the field won't be shown and it will also ignore the #required setting , so you wouldn't even have to do the first loop.
Comment #2
LukyLuke_ch commentedHmm, didn't know that removing elements inside a foreach does work, strange :)
Comment #3
berdirThanks, commited.