Skip to content

Commit 4acbd31

Browse files
committed
Remove non-existent functions from form_helper docs.
1 parent b97dbf8 commit 4acbd31

1 file changed

Lines changed: 0 additions & 44 deletions

File tree

user_guide_src/source/helpers/form_helper.rst

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -674,47 +674,3 @@ The following functions are available:
674674
functions to work. This is because if a Form Validation object is
675675
defined, the control for ``set_*()`` is handed over to a method of the
676676
class instead of the generic helper function.
677-
678-
.. php:function:: form_error([$field = ''[, $prefix = ''[, $suffix = '']]])
679-
680-
:param string $field: Field name
681-
:param string $prefix: Error opening tag
682-
:param string $suffix: Error closing tag
683-
:returns: HTML-formatted form validation error message(s)
684-
:rtype: string
685-
686-
Returns a validation error message from the :doc:`Form Validation Library
687-
<../libraries/validation>`, associated with the specified field name.
688-
You can optionally specify opening and closing tag(s) to put around the error
689-
message.
690-
691-
Example::
692-
693-
// Assuming that the 'username' field value was incorrect:
694-
echo form_error('myfield', '<div class="error">', '</div>');
695-
696-
// Would produce: <div class="error">Error message associated with the "username" field.</div>
697-
698-
.. php:function:: validation_errors([$prefix = ''[, $suffix = '']])
699-
700-
:param string $prefix: Error opening tag
701-
:param string $suffix: Error closing tag
702-
:returns: HTML-formatted form validation error message(s)
703-
:rtype: string
704-
705-
Similarly to the :php:func:`form_error()` function, returns all validation
706-
error messages produced by the :doc:`Form Validation Library
707-
<../libraries/validation>`, with optional opening and closing tags
708-
around each of the messages.
709-
710-
Example::
711-
712-
echo validation_errors('<span class="error">', '</span>');
713-
714-
/*
715-
Would produce, e.g.:
716-
717-
<span class="error">The "email" field doesn't contain a valid e-mail address!</span>
718-
<span class="error">The "password" field doesn't match the "repeat_password" field!</span>
719-
720-
*/

0 commit comments

Comments
 (0)