You are here

function ctools_mobile_codes_block_info_alter in Mobile Codes 7.2

Implements hook_mobile_codes_block_info_alter() on behalf of ctools.module.

File

includes/ctools.inc, line 52
CTools module integration.

Code

function ctools_mobile_codes_block_info_alter(&$blocks) {
  ctools_include('export');
  $items = ctools_export_crud_load_all('mobile_codes_blocks');
  foreach ($items as $block) {
    if (!isset($block->disabled) || !$block->disabled) {
      $blocks["block_{$block->name}"] = array(
        'info' => $block->label,
      );
    }
  }
}