function _cctags_get_settings in cctags 6
Same name and namespace in other branches
- 8 cctags.module \_cctags_get_settings()
- 7 cctags.module \_cctags_get_settings()
7 calls to _cctags_get_settings()
- cctags_block in ./
cctags.module - implementation of hook_block
- cctags_get_level_tags in ./
cctags.module - Function that gets the information from the database, passes it along to the weight builder and returns these weighted tags. Note that the tags are unordered at this stage, hence they need orndering either by calling our api or by your own ordering data.
- cctags_menu in ./
cctags.module - Implementation of hook_menu
- cctags_settings in ./
cctags.admin.inc - @file
- cctags_settings_delete_item in ./
cctags.admin.inc
File
- ./
cctags.module, line 570
Code
function _cctags_get_settings($cctid = NULL) {
$items = array();
if ($cctid == NULL) {
$sql = db_query("SELECT cctid,name,block,block_name,page,page_title,page_path,page_level,page_amount,page_sort,page_mode,page_vocname,item_data FROM {cctags} ORDER BY cctid");
}
else {
$sql = db_query("SELECT cctid,name,block,block_name,page,page_title,page_path,page_level,page_amount,page_sort,page_mode,page_vocname,item_data FROM {cctags} WHERE cctid = %d", $cctid);
}
$amounts = _cctags_get_select_list('amount_tags');
while ($cctags = db_fetch_object($sql)) {
$items[] = array(
'cctid' => $cctags->cctid,
'name' => $cctags->name,
'block' => $cctags->block,
'block_name' => $cctags->block_name,
'page' => $cctags->page,
'page_title' => $cctags->page_title,
'page_path' => $cctags->page_path,
'page_level' => $cctags->page_level,
'page_amount' => $cctags->page_amount,
'page_sort' => $cctags->page_sort,
'page_mode' => $cctags->page_mode,
'page_vocname' => $cctags->page_vocname,
'item_data' => unserialize($cctags->item_data),
);
}
return $items;
}