Closed (fixed)
Project:
Smileys
Version:
5.x-1.1
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2007 at 22:28 UTC
Updated:
6 May 2007 at 23:34 UTC
When you make a Content Type's body field invisible the smiley's selection fieldset still shows up.
Comments
Comment #1
Gurpartap Singh commentedThanks 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).Comment #2
Gurpartap Singh commentedComment #3
(not verified) commented