Added new template hook for application settings page

This commit is contained in:
Frederic Guillot
2016-02-28 22:00:54 -05:00
parent 1404bb5507
commit fafc272085
3 changed files with 5 additions and 2 deletions

View File

@@ -30,6 +30,8 @@
<?= $this->form->label(t('Custom Stylesheet'), 'application_stylesheet') ?>
<?= $this->form->textarea('application_stylesheet', $values, $errors) ?>
<?= $this->hook->render('template:config:application', array('values' => $values, 'errors' => $errors)) ?>
<div class="form-actions">
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue">
</div>

View File

@@ -17,10 +17,10 @@ class UserValidator extends Base
/**
* Common validation rules
*
* @access private
* @access protected
* @return array
*/
private function commonValidationRules()
protected function commonValidationRules()
{
return array(
new Validators\MaxLength('role', t('The maximum length is %d characters', 25), 25),