Smiley Slider

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:

<?php
  $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

  1. Download the smiley-slider package
  2. Unpack it and rename the folder to "smiley-slider"
  3. 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

Downloads

Recommended releases

Version Downloads Date Links
7.x-1.0 tar.gz (8.79 KB) | zip (10.07 KB) 2011-Nov-20 Notes

Development releases

Version Downloads Date Links
7.x-1.x-dev tar.gz (8.8 KB) | zip (10.07 KB) 2011-Nov-20 Notes

Project Information


Maintainers for Smiley Slider

  • IceCreamYou - 1 commit
    last: 28 weeks ago, first: 28 weeks ago

Issues for Smiley Slider

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
nobody click here