function smiley_settings_form in Smiley 7
Settings form.
1 string reference to 'smiley_settings_form'
- smiley_menu in ./
smiley.module - Implements hook_menu().
File
- ./
smiley.admin.inc, line 198 - Smileys administrative pages.
Code
function smiley_settings_form($form, &$form_state) {
$form['note'] = array(
'#markup' => t("It is the best practice to hold your smiley in separate folder under website's public files or resources directory."),
);
$form['smiley_path'] = array(
'#type' => 'textfield',
'#required' => TRUE,
'#title' => 'Path to smiley packs directory',
'#maxlength' => 256,
'#default_value' => variable_get('smiley_path', drupal_get_path('module', 'smiley') . '/packs'),
'#size' => 64,
);
$form['smiley_css_class'] = array(
'#type' => 'textfield',
'#title' => 'CSS class to add to smiley images',
'#description' => 'Separate mulitple classes with a space',
'#maxlength' => 256,
'#default_value' => variable_get('smiley_css_class', ''),
'#size' => 64,
);
return system_settings_form($form);
}