You are here

function ga_push_get_methods in GA Push 7

Same name and namespace in other branches
  1. 8 ga_push.module \ga_push_get_methods()

Get all GA Push methods.

3 calls to ga_push_get_methods()
ga_push_get_method in ./ga_push.module
Get GA Push method info.
ga_push_get_methods_option_list in ./ga_push.module
Returns all available methods as option list.
ga_push_method_available in ./ga_push.module
Check if a GA PUSH method is available.

File

./ga_push.module, line 555
Drupal Module: GA Push.

Code

function ga_push_get_methods() {
  static $callbacks = array();
  if (!count($callbacks)) {
    foreach (module_implements('ga_push_method') as $module) {
      $router_items = call_user_func($module . '_ga_push_method');
      if (isset($router_items) && is_array($router_items)) {
        foreach (array_keys($router_items) as $method) {
          $router_items[$method]['module'] = $module;
        }
        $callbacks = array_merge($callbacks, $router_items);
      }
    }
  }
  return $callbacks;
}