From 9217efd9a9b0e3913e41192b42a4017d57dfdb34 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Tue, 13 Mar 2018 15:02:56 -0400 Subject: [PATCH] Allow embedding #markup inside the input element Use `#markup` on the input element to add some markup directly in the `input` tag itself. --- includes/fapi.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/fapi.inc b/includes/fapi.inc index 2483a6b..51e1e09 100644 --- a/includes/fapi.inc +++ b/includes/fapi.inc @@ -283,7 +283,10 @@ function kalatheme_button($variables) { $element['#attributes']['class'][] = 'btn-primary'; } - return '';; + // Allow embedding some markup inside the button element. + $output = '' . $element['#markup'] . '' : '/>'; + return $output; } /**