function quicktabs_ajax in Quick Tabs 6.2
Same name and namespace in other branches
- 6.3 quicktabs.module \quicktabs_ajax()
- 7.3 quicktabs.module \quicktabs_ajax()
- 7.2 quicktabs.module \quicktabs_ajax()
Ajax callback for tab content.
1 string reference to 'quicktabs_ajax'
- quicktabs_menu in ./
quicktabs.module - Implementation of hook_menu().
File
- ./
quicktabs.module, line 242
Code
function quicktabs_ajax($type) {
$args = func_get_args();
$type = array_shift($args);
$func = 'quicktabs_ajax_' . $type;
$output = call_user_func_array($func, $args);
$js_css = quicktabs_ajax_js_css();
$response = array(
'content' => $output,
'js_css' => $js_css,
);
drupal_json(array(
'status' => 0,
'data' => $response,
));
}