function quicktabs_load in Quick Tabs 6.3
Same name and namespace in other branches
- 6.2 quicktabs.module \quicktabs_load()
- 7.3 quicktabs.module \quicktabs_load()
- 7.2 quicktabs.module \quicktabs_load()
Load the quicktabs data.
3 calls to quicktabs_load()
- quicktabs_block in ./
quicktabs.module - Implementation of hook_block().
- quicktabs_form_submit in includes/
admin.inc - Submit handler for quicktabs admin page.
- quicktabs_render_tabpage in ./
quicktabs.module - Render quicktabs tabpage.
File
- ./
quicktabs.module, line 535
Code
function quicktabs_load($qt_name, $op = 'view') {
// Load quicktabs via ctools is present.
if (module_exists('ctools')) {
ctools_include('export');
$defaults = ctools_export_load_object('quicktabs', 'names', array(
$qt_name,
));
return isset($defaults[$qt_name]) ? (array) $defaults[$qt_name] : FALSE;
}
// Load quicktabs from the database.
$quicktabs = db_fetch_array(db_query("SELECT machine_name, title, tabs, ajax, hide_empty_tabs, default_tab, style FROM {quicktabs} WHERE machine_name = '%s'", $qt_name));
if ($quicktabs) {
return _quicktabs_unpack($quicktabs);
}
return FALSE;
}