You are here

function trigger_example_ping in Examples for Developers 6

Function to generate ping events and invoke hook_trigger_example().

Related topics

1 call to trigger_example_ping()
trigger_example_form_submit in trigger_example/trigger_example.module

File

trigger_example/trigger_example.module, line 72

Code

function trigger_example_ping() {
  $count = variable_get('trigger_example_pings', 0) + 1;

  // Invoke hook_trigger_example() with the ping operation.
  module_invoke_all('trigger_example', 'ping', $count);
  variable_set('trigger_example_pings', $count);
}