Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This module is used for defining new hook in existing model. Please see also articles describing defining model using XML and model hooks.

Module's schema is defined in model.xsd.

...

name

type

required

description

plugin

string

yes

Name of the plugin where the model belongs.

model

string

yes

Name of the model where the hook will be added.

node value

string

yes

Definition of the hook. Please see an article describing defining model hook using XML.

Example

Please find below an example of plugin defining one hook module. Lines 8-10 contain a module which defines new on-save hook in model sampleModel which belongs to the plugin otherPlugin.

...