Commit b9e48bad authored by Jono Mingard's avatar Jono Mingard
Browse files

Added hidden label to wall post textarea (Bug #1262870)



Uses the new 'hiddenlabel' pieforms option.

Change-Id: I33add6ce2908d8e62ce71d9a2083724ec025c8f2
Signed-off-by: default avatarJono Mingard <jonom@catalyst.net.nz>
parent f19fd70a
......@@ -135,6 +135,8 @@ class PluginBlocktypeWall extends SystemBlocktype {
'elements' => array(
'text' => array(
'type' => 'textarea',
'title' => get_string('Post', 'blocktype.wall'),
'hiddenlabel' => true,
'description' => bbcode_format_post_message(),
'rows' => 3,
'cols' => 50,
......
......@@ -5,7 +5,7 @@
echo $form_tag;
echo '<div id="wall"><div class="description">' . $elements['postsizelimit']['html'] . ' ' . $elements['text']['description'] . '</div>';
echo '<div>' . $elements['text']['html'] .'</div>';
echo '<div>' . $elements['text']['labelhtml'] . $elements['text']['html'] .'</div>';
if (isset($elements['text']['error'])) {
echo '<div>' . $elements['text']['error'] . '</div>';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment