You are here

function views_timelinejs_get_callback in Views TimelineJS integration 7

Returns the date conversion callback function name of a plugin.

1 call to views_timelinejs_get_callback()
views_timelinejs_plugin_style_timelinejs::render in ./views_timelinejs_plugin_style_timelinejs.inc
Render the display.

File

./views_timelinejs.module, line 87
Views TimelineJS API, theming, libraries, etc.

Code

function views_timelinejs_get_callback($handler_name, $field_type, $plugin_type) {
  ctools_include('plugins');
  $plugins = ctools_get_plugins('views_timelinejs', $plugin_type);
  foreach ($plugins as $plugin) {
    if ($plugin['handler_name'] == $handler_name && $plugin['field_type'] == $field_type) {
      return ctools_plugin_get_function($plugin, 'callback');
    }
  }
}