Theming Drupal Add Block form via forms API.
Posted
by hfidgen
on Stack Overflow
See other posts from Stack Overflow
or by hfidgen
Published on 2010-05-06T12:55:24Z
Indexed on
2010/05/06
12:58 UTC
Read the original article
Hit count: 219
Hiya,
Can anyone advise me on customising the Add Block form? (/admin/build/block/add)
I want to hide the "User specific visibility settings" and "Role specific visibility settings" from users. This is what i've got so far, but obviously it's not right and I can't figure out what the array is. Anyone got the experience on this?
function theme_add_block_form($form) {
$form['roles']['#prefix'] = '<div class="hidden">';
$form['roles']['#suffix'] = '</div>';
return drupal_render($form);
}
Thanks, H
© Stack Overflow or respective owner