content_type_extras.install 477 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * Implements hook_enable().
  4. */
  5. function content_type_extras_enable() {
  6. // Weight content_type_extras to come after other modules -- in particular, field_group.
  7. db_update('system')
  8. ->fields(array('weight' => 10))
  9. ->condition('name', 'content_type_extras')
  10. ->condition('type', 'module')
  11. ->execute();
  12. }
  13. function content_type_extras_uninstall() {
  14. db_delete('variable')
  15. ->condition('name', 'content_type_extras_%', 'LIKE')
  16. ->execute();
  17. }