By default it's collapsed on my system all the time which means a user createing or editing a node must always click to expand it. I'd prefer it was open (expanded by default). I couldn't find a setting and if i need to theme it, how do i do it? via a "class"?

thanks

Comments

Goose4all’s picture

i was asking myself cause i did just install this module..

after a quick look in the module-file i've sorted that out...

find

[code]/**
* Implementation of hook_form_alter().
*/
function smileys_form_alter($form_id, &$form) {
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[$
$output = '';
$form['smileys'] = array(
'#type' => 'fieldset',
'#title' => t('Smileys'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#weight' => 0,
);
$form['smileys']['smileys_box'] = array(
'#type' => 'markup',
'#value' => theme('smileys_select_table') . (variable_get('smileys_enable_widget', 0) ? ''. t('[Alle zeigen]') .'' : ''),
);
}
return $form;
}
[/code]

and set that "collapsed" to false... that it look like this:

[code]/**
* Implementation of hook_form_alter().
*/
function smileys_form_alter($form_id, &$form) {
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[$
$output = '';
$form['smileys'] = array(
'#type' => 'fieldset',
'#title' => t('Smileys'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
'#weight' => 0,
);
$form['smileys']['smileys_box'] = array(
'#type' => 'markup',
'#value' => theme('smileys_select_table') . (variable_get('smileys_enable_widget', 0) ? ''. t('[Alle zeigen]') .'' : ''),
);
}
return $form;
}
[/code]

thats it..

cheers
Andreas

Gurpartap Singh’s picture

Assigned: Unassigned » Gurpartap Singh
Category: support » feature
Status: Active » Fixed

Earlier, the opposite was requested. However, now added the option to let the user select the default behavior in Smileys settings. Fixed, Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.