Skip to content

Commit

Permalink
Issue #15 #19: Fixup for theme rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoltan Horvath committed Dec 6, 2018
1 parent 63c8cb3 commit 0ec0a66
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions claro.theme
Original file line number Diff line number Diff line change
Expand Up @@ -199,22 +199,17 @@ function claro_preprocess_form_element(&$variables) {
}

/**
* Implements hook_preprocess_HOOK() for input.
* Implements template_preprocess_HOOK() for input.
*/
function seven_preprocess_input(&$variables) {
function claro_preprocess_input(&$variables) {
if (
!empty($variables['element']['#title_display']) &&
$variables['element']['#title_display'] === 'attribute' &&
!empty((string) $variables['element']['#title'])
) {
$variables['attributes']['title'] = (string) $variables['element']['#title'];
}
}

/**
* Implements template_preprocess_HOOK() for input.
*/
function claro_preprocess_input(&$variables) {
$type_api = $variables['element']['#type'];
$type_html = $variables['attributes']['type'];
$text_types_html = [
Expand Down

0 comments on commit 0ec0a66

Please sign in to comment.