function parallax_block_schema_alter in Parallax Toolkit 7.2
Same name and namespace in other branches
- 7.3 parallax_block/parallax_block.install \parallax_block_schema_alter()
Implements hook_schema_alter().
2 calls to parallax_block_schema_alter()
- parallax_block_install in parallax_block/
parallax_block.install - Implements hook_install().
- parallax_block_uninstall in parallax_block/
parallax_block.install - Implements hook_uninstall().
File
- parallax_block/
parallax_block.install, line 38 - Install, update and uninstall functions for the parallax_block module.
Code
function parallax_block_schema_alter(&$schema) {
$schema['block']['fields']['vertical_parallax_value'] = array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => 'none',
'description' => 'String containing the vertical parallax value for the block',
);
$schema['block']['fields']['horizontal_parallax_value'] = array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => 'none',
'description' => 'String containing the horizontal parallax value for the block',
);
$schema['block']['fields']['background_image'] = array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => 'none',
'description' => 'String containing the background image name for the block',
);
$schema['block']['fields']['background_size'] = array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => 'none',
'description' => 'String containing the background position value for the block',
);
}