You are here

function menu_block_form_alter in Menu Block 5.2

Alters the block admin form to add delete links next to menu blocks.

File

./menu_block.module, line 63
Provides configurable blocks of menu items.

Code

function menu_block_form_alter($form_id, &$form) {
  switch ($form_id) {
    case 'block_admin_display':
      include_once './' . drupal_get_path('module', 'menu_block') . '/menu_block.admin.inc';
      _menu_block_form_block_admin_display_alter($form);
      break;
    case 'menu_block_add_block_form':
      include_once './' . drupal_get_path('module', 'menu_block') . '/menu_block.admin.inc';
      _menu_block_form_menu_block_add_block_form_alter($form);
      break;
  }
}