aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/submit.php
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 06:41:44 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 06:41:44 +0000
commit008644017462ff0848a3d047d4656762c13c0364 (patch)
tree7809a2a18efde1b47832994f7cdca68630040d19 /views/default/input/submit.php
parent2a76ba6147bd1b5afe65d1f34f9f18b3af23985b (diff)
downloadelgg-008644017462ff0848a3d047d4656762c13c0364.tar.gz
elgg-008644017462ff0848a3d047d4656762c13c0364.tar.bz2
Refs #2143: Cleaned up input/submit
git-svn-id: http://code.elgg.org/elgg/trunk@7360 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/input/submit.php')
-rw-r--r--views/default/input/submit.php13
1 files changed, 2 insertions, 11 deletions
diff --git a/views/default/input/submit.php b/views/default/input/submit.php
index dd520fa8e..315a70eac 100644
--- a/views/default/input/submit.php
+++ b/views/default/input/submit.php
@@ -6,20 +6,11 @@
*
* @package Elgg
* @subpackage Core
- *
- * @uses $vars['value'] The current value, if any
- * @uses $vars['js'] Any Javascript to enter into the input tag
- * @uses $vars['internalname'] The name of the input field
- * @uses $vars['type'] Submit or reset, defaults to submit.
- *
*/
$vars['type'] = 'submit';
-if (isset($vars['class'])) {
- $class = $vars['class'];
-} else {
- $class = "submit_button";
+if (!isset($vars['class'])) {
+ $vars['class'] = "submit_button";
}
-$vars['class'] = $class;
echo elgg_view('input/button', $vars); \ No newline at end of file