You are here

function theme_acquia_lift_revealing_input in Acquia Lift Connector 7.2

Theme wrapper function to wrap an input as a revealing input.

File

theme/acquia_lift.wizard.theme.inc, line 134
acquia_lift.wizard.theme.inc Provides theme functions for Acquia Lift's version of the campaign creation wizard workflow.

Code

function theme_acquia_lift_revealing_input($variables) {
  if (empty($variables['element']['#children'])) {
    return '';
  }
  if (!empty($variables['element']['#disabled'])) {
    unset($variables['element']['#theme_wrappers']);
    return drupal_render($variables['element']);
  }
  $classes = array(
    'acquia-lift-revealing-input',
  );
  if (!isset($variables['element']['#fix']) || $variables['element']['#fix'] == TRUE) {
    $classes[] = 'clearfix';
  }
  drupal_add_library('acquia_lift', 'acquia_lift.inputs');
  $html = '';
  $html .= '<div class="' . implode(' ', $classes) . '">';
  $html .= $variables['element']['#children'];
  $html .= '</div>';
  return $html;
}