Navigation Menu

Skip to content

Commit

Permalink
Dev Added functionality for plugin settings to use a textarea.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamMousa committed Oct 21, 2013
1 parent 96fa59c commit fe7b0c5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions application/extensions/SettingsWidget/SettingsWidget.php
Expand Up @@ -283,6 +283,20 @@ public function renderString($name, array $metaData, $form = null)
return $out;
}

public function renderText($name, array $metaData, $form = null)
{
$out = '';
$id = $name;
$value = isset($metaData['current']) ? $metaData['current'] : '';
$readOnly = isset($metaData['readOnly']) ? $metaData['readOnly'] : false;
if (isset($metaData['label']))
{
$out .= CHtml::label($metaData['label'], $id);
}
$out .= Chtml::tag('div', array('class' => implode(' ', $metaData['class'])), CHtml::textArea($id, $value, array('id' => $id, 'form' => $form, 'readonly' => $readOnly)));
return $out;
}

public function renderPassword($name, array $metaData, $form = null)
{
$out = '';
Expand Down

0 comments on commit fe7b0c5

Please sign in to comment.