You are here

content_type_extras.install in Content Type: Extras 7

File

content_type_extras.install
View source
<?php

/**
 * Implements hook_enable().
 */
function content_type_extras_enable() {

  // Weight content_type_extras to come after other modules -- in particular,
  // field_group.
  db_update('system')
    ->fields(array(
    'weight' => 10,
  ))
    ->condition('name', 'content_type_extras')
    ->condition('type', 'module')
    ->execute();
}

/**
 * Implements hook_uninstall().
 */
function content_type_extras_uninstall() {
  db_delete('variable')
    ->condition('name', 'content_type_extras_%', 'LIKE')
    ->execute();
}

Functions