[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/modules/trigger/ -> trigger.module (summary)

(no description)

File Size: 435 lines (16 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 16 functions

  trigger_help()
  trigger_menu()
  trigger_access_check()
  _trigger_get_hook_aids()
  trigger_theme()
  trigger_forms()
  _trigger_normalize_node_context()
  trigger_nodeapi()
  _trigger_normalize_comment_context()
  trigger_comment()
  trigger_cron()
  _trigger_normalize_user_context()
  trigger_user()
  trigger_taxonomy()
  trigger_options()
  trigger_actions_delete()

Functions
Functions that are not part of a class:

trigger_help($path, $arg)   X-Ref
Implementation of hook_help().


trigger_menu()   X-Ref
Implementation of hook_menu().


trigger_access_check($module)   X-Ref
Access callback for menu system.


_trigger_get_hook_aids($hook, $op = '')   X-Ref
Get the aids of actions to be executed for a hook-op combination.

param: $hook
param: $op
return:

trigger_theme()   X-Ref
Implementation of hook_theme().


trigger_forms()   X-Ref
Implementation of hook_forms(). We reuse code by using the
same assignment form definition for each node-op combination.


_trigger_normalize_node_context($type, $node)   X-Ref
When an action is called in a context that does not match its type,
the object that the action expects must be retrieved. For example, when
an action that works on users is called during the node hook, the
user object is not available since the node hook doesn't pass it.
So here we load the object the action expects.

param: $type
param: $node
return:

trigger_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL)   X-Ref
Implementation of hook_nodeapi().


_trigger_normalize_comment_context($type, $comment)   X-Ref
When an action is called in a context that does not match its type,
the object that the action expects must be retrieved. For example, when
an action that works on nodes is called during the comment hook, the
node object is not available since the comment hook doesn't pass it.
So here we load the object the action expects.

param: $type
param: $comment
return:

trigger_comment($a1, $op)   X-Ref
Implementation of hook_comment().


trigger_cron()   X-Ref
Implementation of hook_cron().


_trigger_normalize_user_context($type, $account)   X-Ref
When an action is called in a context that does not match its type,
the object that the action expects must be retrieved. For example, when
an action that works on nodes is called during the user hook, the
node object is not available since the user hook doesn't pass it.
So here we load the object the action expects.

param: $type
param: $account
return:

trigger_user($op, &$edit, &$account, $category = NULL)   X-Ref
Implementation of hook_user().


trigger_taxonomy($op, $type, $array)   X-Ref
Implementation of hook_taxonomy().


trigger_options($type = 'all')   X-Ref
Often we generate a select field of all actions. This function
generates the options for that select.

param: $type
return:

trigger_actions_delete($aid)   X-Ref
Implementation of hook_actions_delete().

Remove all trigger entries for the given action, when deleted.



Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7