Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function block_attributes_install() {
- drupal_install_schema('block_attributes');
- }
- function block_attributes_schema() {
- $schema = array();
- $schema['block_attributes'] = array(
- 'description' => 'Store css classe for a block',
- 'fields' => array(
- 'module' => array(
- 'type' => 'varchar',
- 'length' => 25,
- 'not null' => TRUE,
- 'description' => 'Module of the block',
- ),
- 'delta' => array(
- 'type' => 'varchar',
- 'length' => 25,
- 'not null' => TRUE,
- 'description' => 'Delta of the block',
- ),
- 'classes' => array(
- 'type' => 'varchar',
- 'length' => 600,
- 'not null' => TRUE,
- 'description' => 'Serialize array with css classe for the block',
- ),
- ),
- 'primary key' => array('module', 'delta'),
- );
- return $schema;
- }
- function block_attributes_uninstall() {
- //drupal_uninstall_schema('block_attributes');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement