Using modifiers: Difference between revisions
Appearance
No edit summary |
mNo edit summary |
||
| Line 18: | Line 18: | ||
class mod_mymodule extends atkModule | class mod_mymodule extends atkModule | ||
{ | { | ||
function module_node_modifier( | function module_node_modifier(</syntaxhighlight> | ||
</syntaxhighlight> | |||
Revision as of 15:05, 8 July 2007
|
ATK Howto: Using modifiers
|
Modifiers allow you to modify nodes on before they are used. Making it possible to do such things as to add or remove attributes to a node before it is loaded.
Example of using modifiers:
Add the following code in your module_preload.inc (if this file is not present, create it in your module's directory):
$modifiers[] = 'modules.node';
In your module.inc:
class mod_mymodule extends atkModule
{
function module_node_modifier(