aboutsummaryrefslogtreecommitdiff
path: root/views/default/widgets/editwrapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/widgets/editwrapper.php')
-rw-r--r--views/default/widgets/editwrapper.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/views/default/widgets/editwrapper.php b/views/default/widgets/editwrapper.php
index cf985445b..73166b718 100644
--- a/views/default/widgets/editwrapper.php
+++ b/views/default/widgets/editwrapper.php
@@ -11,15 +11,15 @@ $widget = $vars['widget'];
$edit_view = "widgets/$widget->handler/edit";
$custom_form_section = elgg_view($edit_view, array('entity' => $widget));
+$access_text = elgg_echo('access');
$access = elgg_view('input/access', array('internalname' => 'params[access_id]','value' => $widget->access_id));
-$hidden = elgg_view('input/hidden', array('internalname' => 'guid', 'value' => $widget->guid)) .
-$hidden .= elgg_view('input/hidden', array('internalname' => 'noforward', 'value' => 'true'));
-$submit = elgg_view('input/submit', array('internalname' => "submit$guid", 'value' => elgg_echo('save')));
+$hidden = elgg_view('input/hidden', array('internalname' => 'guid', 'value' => $widget->guid));
+$submit = elgg_view('input/submit', array('value' => elgg_echo('save')));
$body = <<<___END
$custom_form_section
<p>
- <label>Access:</label> $access
+ <label>$access_text:</label> $access
</p>
<p>
$hidden
@@ -32,10 +32,8 @@ ___END;
<?php
$params = array(
'body' => $body,
- 'action' => "action/widgets/save",
- 'internalid' => "widgetform$guid"
+ 'action' => "action/widgets/save"
);
echo elgg_view('input/form', $params);
-// _<?php echo $widget->guid;
?>
</div>