You are here

function blockanimate_schema_alter in BlockAnimate 7

Implements hook_schema_alter().

Other modules, such as block_class & i18n_block also modify the block database table. This module leverages Drupal core's block table.

2 calls to blockanimate_schema_alter()
blockanimate_install in ./blockanimate.install
Implements hook_install().
blockanimate_uninstall in ./blockanimate.install
Implements hook_uninstall().

File

./blockanimate.install, line 43
Install, update and uninstall functions for the blockanimate module.

Code

function blockanimate_schema_alter(&$schema) {
  if (isset($schema['block'])) {
    $schema['block']['fields']['animate_css_class'] = array(
      'type' => 'varchar',
      'length' => 255,
      'not null' => TRUE,
      'default' => '',
      'description' => 'String containing the animate CSS class for the block.',
    );
    $schema['block']['fields']['animate_css_infinite'] = array(
      'type' => 'int',
      'not null' => TRUE,
      'size' => 'tiny',
      'default' => 0,
      'description' => 'Boolean which indicates if an infinite loop is desired for the animation.',
    );
    $schema['block']['fields']['animate_css_wow_duration'] = array(
      'type' => 'float',
      'not null' => TRUE,
      'size' => 'medium',
      'default' => -1,
      'description' => 'Animation duration.',
    );
    $schema['block']['fields']['animate_css_wow_delay'] = array(
      'type' => 'float',
      'not null' => TRUE,
      'size' => 'medium',
      'default' => -1,
      'description' => 'Animation delay.',
    );
    $schema['block']['fields']['animate_css_wow_offset'] = array(
      'type' => 'int',
      'not null' => TRUE,
      'size' => 'small',
      'default' => -1,
      'description' => 'Animation offset.',
    );
    $schema['block']['fields']['animate_css_wow_iteration'] = array(
      'type' => 'int',
      'not null' => TRUE,
      'size' => 'small',
      'default' => -1,
      'description' => 'Animation iteration.',
    );
  }
}