ewinslow/elgg-questions — Issue #13: Edit Question Patch work now pages/edit.php
Author: lianglee
Created: 2011-11-13 04:26:20+00:00
State: open

canEdit()) {
register_error(elgg_echo('questions:unknown'));
forward(REFERRER);
}

$title = elgg_echo('questions:edit');

elgg_push_breadcrumb($title);

$vars = array(
'entity' => $question,
);

$content = elgg_view_form('object/question/save', array(), $vars);

$body = elgg_view_layout('content', array(
'content' => $content,
'title' => $title,
'filter' => '',
'header' => '',));
echo elgg_view_page($title, $body);