Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Installation
- Download the smiley-slider package
- Unpack it and rename the folder to "smiley-slider"
- Place the folder in the module's directory so that the image is at e.g.
sites/all/modules/smileyslider/smiley-slider/smiley-slider.png
Project information
- Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed. - Maintenance fixes only
Considered feature-complete by its maintainers. - Module categories: User Engagement, Integrations
- Created by IceCreamYou on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
7.x-1.0
released 20 November 2011
Works with Drupal: 7.x
✓ Recommended by the project’s maintainer.
Development version: 7.x-1.x-dev updated 20 Nov 2011 at 12:33 UTC