Skip to content

Commit 97c4518

Browse files
committed
docs: just joining lines together nicely
1 parent c04a4e7 commit 97c4518

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

user_guide_src/source/models/model.rst

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -740,18 +740,17 @@ Defining Callbacks
740740

741741
You specify the callbacks by first creating a new class method in your model to use.
742742

743-
This class method will always
744-
receive a ``$data`` array as its only parameter.
745-
746-
The exact contents of the ``$data`` array will vary between events, but
747-
will always contain a key named ``data`` that contains the primary data passed to the original method.
748-
In the case
749-
of the **insert*()** or **update*()** methods, that will be the key/value pairs that are being inserted into the database.
750-
The
751-
main ``$data`` array will also contain the other values passed to the method, and be detailed in `Event Parameters`_.
752-
753-
The callback method
754-
must return the original ``$data`` array so other callbacks have the full information.
743+
This class method will always receive a ``$data`` array as its only parameter.
744+
745+
The exact contents of the ``$data`` array will vary between events, but will always
746+
contain a key named ``data`` that contains the primary data passed to the original
747+
method. In the case of the **insert*()** or **update*()** methods, that will be
748+
the key/value pairs that are being inserted into the database. The main ``$data``
749+
array will also contain the other values passed to the method, and be detailed
750+
in `Event Parameters`_.
751+
752+
The callback method must return the original ``$data`` array so other callbacks
753+
have the full information.
755754

756755
.. literalinclude:: model/050.php
757756

0 commit comments

Comments
 (0)