I am writing a Drupal module (filemaker) and defined some custom triggers. The triggers show up just fine, but say 'No available actions for this trigger.' at admin/build/trigger/filemaker.
Any idea how to make actions available for my trigger?
Thanks in advance.
/**
* Implementation of hook_hook_info().
*/
function filemaker_hook_info() {
return array(
'filemaker' => array(
'filemaker' => array(
'create' => array(
'runs when' => t('After creating a FileMaker record'),
),
'update' => array(
'runs when' => t('After updating a FileMaker record'),
),
),
),
);
}
/**
* Implementation of hook_filemaker().
*/
function filemaker_filemaker($op, $node) {
$aids = _trigger_get_hook_aids('filemaker', $op);
$context = array(
'hook' => 'filemaker',
'op' => $op,
'node' => $node,
);
actions_do(array_keys($aids), $node, $context);
}
[...]
// Fire off the hook.
module_invoke_all('filemaker', 'create', $node);
[...]