Same name in other branches
- 7.x-3.x quicktabs.module \quicktabs_load()
- 8.x-1.x quicktabs.module \quicktabs_load()
Load the quicktabs data.
4 calls to quicktabs_load()
- quicktabs_block_view dans ./
quicktabs.module - Implements hook_block_view().
- quicktabs_form_submit dans includes/
admin.inc - Submit handler for quicktabs admin page.
- _quicktabs_build_content_block dans ./
quicktabs.module - _quicktabs_build_content_qtabs dans ./
quicktabs.module
Fichier
-
./
quicktabs.module, line 206
Code
function quicktabs_load($qt_name, $op = 'view') {
// Load quicktabs via ctools if present.
if (module_exists('ctools')) {
ctools_include('export');
$defaults = ctools_export_load_object('quicktabs', 'names', array(
$qt_name,
));
return isset($defaults[$qt_name]) ? $defaults[$qt_name] : FALSE;
}
// Load quicktabs from the database.
$quicktab = db_query("SELECT machine_name, title, tabs, ajax, hide_empty_tabs, default_tab, style FROM {quicktabs} WHERE machine_name = :machine_name", array(
':machine_name' => $qt_name,
))->fetchObject();
if ($quicktab) {
return _quicktabs_unpack($quicktab);
}
return FALSE;
}