function _advanced_menu_blocks_disabled in Advanced Menu 7
Helper function to determine if the block is disabled.
3 calls to _advanced_menu_blocks_disabled()
- advanced_menu_blocks_block_info_alter in blocks/
advanced_menu_blocks.module - Implements hook_block_info_alter().
- advanced_menu_blocks_block_view_alter in blocks/
advanced_menu_blocks.module - Implements hook_block_view_alter().
- advanced_menu_blocks_form_alter in blocks/
advanced_menu_blocks.module - Implementation of hook_form_alter().
File
- blocks/
advanced_menu_blocks.module, line 129 - Provides block customization settings for menus.
Code
function _advanced_menu_blocks_disabled($menu_name) {
$query = db_select('advanced_menu_blocks', 'b')
->fields('b', array(
'menu_name',
))
->condition('menu_name', $menu_name);
$num_rows = $query
->countQuery()
->execute()
->fetchField();
return array(
$num_rows,
);
}