function headerimage_get_blocks in Header image 6
Same name and namespace in other branches
- 5 headerimage.module \headerimage_get_blocks()
- 7 headerimage.module \headerimage_get_blocks()
Return all Header Image blocks
Return value
array of Header Image blocks
8 calls to headerimage_get_blocks()
- headerimage_block in ./
headerimage.module - Implementation of hook_block().
- headerimage_block_confirm_delete in ./
headerimage.admin.inc - Delete block form
- headerimage_form_alter in ./
headerimage.module - Implementation of hook_form_alter
- headerimage_help in ./
headerimage.module - Implementation of hook_help
- headerimage_settings_block_add in ./
headerimage.admin.inc - Overview of all image blocks
File
- ./
headerimage.module, line 658 - headerimage.module Conditionally display an node in a block.
Code
function headerimage_get_blocks() {
static $blocks;
if (!isset($blocks)) {
$blocks = array();
$result = db_query("SELECT * FROM {headerimage_block}");
while ($block = db_fetch_object($result)) {
if (!empty($block)) {
$blocks[$block->delta] = $block->title;
}
}
}
return $blocks;
}