drupalprojects / kalatheme

Mirror of http://drupal.org/project/kalatheme provided by hubdrop.
http://hubdrop.org/project/kalatheme
GNU General Public License v2.0
22 stars 29 forks source link

kalatheme_form_element_label problem with og permission group admninister #304

Open pierrelucueisd opened 7 years ago

pierrelucueisd commented 7 years ago

i desactivate kalatheme_form_element_label in includes/fapi.inc and i am now able of desactivating permission in group/%/%/admin/permissions. Beafore that, i was unable of removing permission but was able of activating a new for a role.

more specificly, when i keep kalatheme_form_element_label activated in code but when i desacivated the following sub code:

if ($is_radio_or_checkbox && $element['#title_display'] != 'permissions' && isset($element['#children'])) { $output .= $element['#children']; } it was working ok but i did not test all the other functionnality. So i prefered to desactivate this function and use te one providen by core theme for avoiding error.

I do not undertand the correct way of hannling $element['#children'] so ist the best way for me to correct the problem for me but it should be usefull for other to correct this bug with og.

pierrelucueisd commented 7 years ago

i found a better way:

if ($is_radio_or_checkbox && $element['#title_display'] != 'permissions' && $element['#title_display'] != 'invisible' && isset($element['#children'])) { $output .= $element['#children']; }