aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/reset.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input/reset.php')
-rw-r--r--views/default/input/reset.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/views/default/input/reset.php b/views/default/input/reset.php
index d0eb06709..082da8669 100644
--- a/views/default/input/reset.php
+++ b/views/default/input/reset.php
@@ -5,15 +5,10 @@
* @package Elgg
* @subpackage Core
*
- * @uses $vars['class'] Additional CSS class
+ * @uses $vars['class'] CSS class that replaces elgg-button-cancel
*/
-if (isset($vars['class'])) {
- $vars['class'] = "elgg-button-cancel {$vars['class']}";
-} else {
- $vars['class'] = "elgg-button-cancel";
-}
-
$vars['type'] = 'reset';
+$vars['class'] = elgg_extract('class', $vars, 'elgg-button-cancel');
echo elgg_view('input/button', $vars); \ No newline at end of file