ewinslow/elgg-questions — pull request #14 by lianglee (2011-11-28 07:37:59+00:00)
Title: Edit Question tow work pages/edit.php

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);