When you make a Content Type's body field invisible the smiley's selection fieldset still shows up.

Comments

Gurpartap Singh’s picture

Status: Active » Reviewed & tested by the community

Thanks for the point! Change the condition line in smileys_hook_alter() to:

if (user_access('use smiley select box') && ((isset($form['type']) && $form['type']['#value'] .'_node_form' == $form_id) && variable_get('smileys_enable_for_nodes', 0) && isset($form['body_filter'])) || ('comment_form' == $form_id && variable_get('smileys_enable_for_comments', 0))) {

The change is. && isset($form['body_filter']) was added to subcondition(for node case).

Gurpartap Singh’s picture

Status: Reviewed & tested by the community » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)