You are here

function dialog_user_block_view_alter in Dialog 7.2

Implement hook_block_view_alter().

File

modules/dialog_user/dialog_user.module, line 11
Provides dialog integration for user.module.

Code

function dialog_user_block_view_alter(&$data, $block) {
  switch ($block->delta) {
    case 'login':

      // Attach the library for handling the dialog in the response.
      $data['content']['#attached']['library'][] = array(
        'system',
        'drupal.ajax',
      );
      break;
  }
}