Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. <?php
  2. function block_attributes_install() {
  3. drupal_install_schema('block_attributes');
  4. }
  5.  
  6. function block_attributes_schema() {
  7. $schema = array();
  8. $schema['block_attributes'] = array(
  9. 'description' => 'Store css classe for a block',
  10. 'fields' => array(
  11. 'module' => array(
  12. 'type' => 'varchar',
  13. 'length' => 25,
  14. 'not null' => TRUE,
  15. 'description' => 'Module of the block',
  16. ),
  17. 'delta' => array(
  18. 'type' => 'varchar',
  19. 'length' => 25,
  20. 'not null' => TRUE,
  21. 'description' => 'Delta of the block',
  22. ),
  23. 'classes' => array(
  24. 'type' => 'varchar',
  25. 'length' => 600,
  26. 'not null' => TRUE,
  27. 'description' => 'Serialize array with css classe for the block',
  28. ),
  29. ),
  30. 'primary key' => array('module', 'delta'),
  31. );
  32. return $schema;
  33. }
  34. function block_attributes_uninstall() {
  35. //drupal_uninstall_schema('block_attributes');
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement