You are here

function ajax_links_api_get_triggers in Ajaxify Drupal with JQuery Ajax 6

Same name and namespace in other branches
  1. 7 ajax_links_api.module \ajax_links_api_get_triggers()

Get trigger classes/ids.

1 call to ajax_links_api_get_triggers()
ajax_links_api_init in ./ajax_links_api.module
Implements hook_init().

File

./ajax_links_api.module, line 193
Make any links or create new links to load content to particular DIV via jQuery Ajax.

Code

function ajax_links_api_get_triggers() {
  $trigger = variable_get('ajax_links_api_trigger', '.ajax-link' . "\n");
  $trigger = explode("\n", $trigger);
  $trigger = array_filter($trigger);
  $trigger = implode(',', $trigger);
  return $trigger;
}