diff options
author | Frédéric Guillot <fguillot@users.noreply.github.com> | 2014-05-03 08:46:27 -0400 |
---|---|---|
committer | Frédéric Guillot <fguillot@users.noreply.github.com> | 2014-05-03 08:46:27 -0400 |
commit | 5d061594486c0d5761ac80a7548fdb4fdad0619b (patch) | |
tree | d2b41f57705c53d0b94724ced2c6cb9b826ee913 /core/helper.php | |
parent | e2d658b396d8bd1f60261924c05a0c6481647c14 (diff) |
Improve webhooks documentation
Diffstat (limited to 'core/helper.php')
-rw-r--r-- | core/helper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/helper.php b/core/helper.php index da90bad6..f3c3c3b8 100644 --- a/core/helper.php +++ b/core/helper.php @@ -198,9 +198,9 @@ function form_checkbox($name, $label, $value, $checked = false, $class = '') return '<label><input type="checkbox" name="'.$name.'" class="'.$class.'" value="'.escape($value).'" '.($checked ? 'checked="checked"' : '').'> '.escape($label).'</label>'; } -function form_label($label, $name, $class = '') +function form_label($label, $name, array $attributes = array()) { - return '<label for="form-'.$name.'" class="'.$class.'">'.escape($label).'</label>'; + return '<label for="form-'.$name.'" '.implode(' ', $attributes).'>'.escape($label).'</label>'; } function form_textarea($name, $values = array(), array $errors = array(), array $attributes = array(), $class = '') |