Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
This is an API module; it just provides a new form element type for use in
other modules. Just set '#type' => 'smileyslider' and optionally set the #range to a positive integer (it defaults to 10) and the value of the
element when submitted will be an integer between 0 and the #range,
indicating the user's happiness. For example:
$form['smiley'] = array(
'#type' => 'smileyslider', // required
'#range' => 100, // defaults to 10
'#title' => t('Happiness'), // only shows for users with JS disabled
'#required' => TRUE,
'#default_value' => rand(0, 100), // random amount of happiness
);
Because it only provides a new form element type, this module has no effect on
your site by itself. Another module has to use the form element type.
Gallery Link provides a field formatter for image fields. You can display images as gallery triggered by a link. You can also use a token for the trigger text.