function theme_interval in Interval Field 7
Returns HTML for an interval form element.
1 theme call to theme_interval()
- interval_element_info in ./
interval.module - Implements hook_element_info().
File
- ./
interval.module, line 291 - Defines an interval field @copyright Copyright(c) 2011 Rowlands Group @license GPL v2+ http://www.fsf.org/licensing/licenses/gpl.html @author Lee Rowlands leerowlands at rowlandsgroup dot com
Code
function theme_interval($variables) {
$element = $variables['element'];
$element['interval']['#size'] = 8;
$attributes = array();
if (isset($element['#id'])) {
$attributes['id'] = $element['#id'];
}
if (!empty($element['#attributes']['class'])) {
$attributes['class'] = (array) $element['#attributes']['class'];
}
$attributes['class'][] = 'container-inline';
return '<div' . drupal_attributes($attributes) . '>' . drupal_render_children($element) . '</div>';
}