You are here

function contentanalysis_element_info in Content Analysis 7

Same name and namespace in other branches
  1. 8 includes/theme.inc \contentanalysis_element_info()

Defines the slider form element and its default values

File

includes/theme.inc, line 16
Contains the functions used to theme the outputs of this module.

Code

function contentanalysis_element_info() {
  $type['contentanalysis_slider_value'] = array(
    '#input' => TRUE,
    '#step' => 1,
    '#min' => 0,
    '#max' => 100,
    '#size' => 3,
    '#value_suffix' => '',
    '#theme' => 'contentanalysis_slider_value',
  );
  $type['contentanalysis_slider_range'] = array(
    '#input' => TRUE,
    '#step' => 1,
    '#min' => 0,
    '#max' => 1,
    '#size' => 3,
    '#value_suffix' => '',
    '#theme' => 'contentanalysis_slider_range',
  );
  return $type;
}