function ultimenu_blocks_enabled in Ultimenu 7
Check for an Ultimenu block enabled by settings.
2 calls to ultimenu_blocks_enabled()
- ultimenu_get_blocks in includes/
ultimenu.utilities.inc - Collects enabled Ultimenu block items.
- _ultimenu_block_save in includes/
ultimenu.admin.inc - Implements hook_block_save().
File
- includes/
ultimenu.utilities.inc, line 270 - Misc functions that hardly change.
Code
function ultimenu_blocks_enabled($delta) {
$blocks = ultimenu_get_settings('blocks');
if (!empty($blocks[$delta])) {
return TRUE;
}
return FALSE;
}