You are here

function dropbox_client_block_info in Dropbox Client 7.4

Same name and namespace in other branches
  1. 7 dropbox_client.module \dropbox_client_block_info()
  2. 7.2 dropbox_client.module \dropbox_client_block_info()
  3. 7.3 dropbox_client.module \dropbox_client_block_info()

Define all blocks provided by the module.

Return value

An associative array whose keys define the delta for each block and whose values contain the block descriptions. Each block description is itself an associative array, with the following key-value pairs:

  • 'info': (required)
  • 'cache': (optional)
  • 'properties': (optional)
  • 'weight': (optional)
  • 'status': (optional)
  • 'region': (optional)
  • 'visibility': (optional)
  • 'pages': (optional)

File

./dropbox_client.module, line 265

Code

function dropbox_client_block_info() {
  $blocks = array();

  /* $blocks[ 'dropbox_install' ] = array(
     'info' => t( 'Install Dropbox Client For Drupal' ),
     'cache' => DRUPAL_NO_CACHE,
     ); */
  $blocks['dropbox_files'] = array(
    'info' => t('Dropbox Files'),
    'cache' => DRUPAL_NO_CACHE,
  );
  $blocks['dropbox_upload'] = array(
    'info' => t('Dropbox Upload'),
    'cache' => DRUPAL_NO_CACHE,
  );
  $blocks['dropbox_search'] = array(
    'info' => t('Dropbox Search'),
    'cache' => DRUPAL_NO_CACHE,
  );
  return $blocks;
}