You are here

moopapi.install in Module Object Oriented Programming API 7

Same filename and directory in other branches
  1. 6.2 moopapi.install
  2. 6 moopapi.install
  3. 7.2 moopapi.install

Install, update and uninstall functions for the Moopapi module.

File

moopapi.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the Moopapi module.
 */
function moopapi_enable() {

  // @todo Abstract it.

  //db_query('UPDATE {system} s SET weight = -1000 WHERE name = "moopapi"');
  db_update('system')
    ->fields(array(
    'weight' => 1,
  ))
    ->condition('type', 'module')
    ->condition('name', 'moopapi')
    ->execute();
}

Functions

Namesort descending Description
moopapi_enable @file Install, update and uninstall functions for the Moopapi module.