You are here

adsense_injector.install in Content Injector (formerly AdSense Injector) 7

The install and update code for the adsense injector module.

File

adsense_injector.install
View source
<?php

/**
 * @file
 * The install and update code for the adsense injector module.
 *
 * @ingroup adsense_injector
 */

/**
 * @todo Please document this function.
 * @see http://drupal.org/node/1354
 */
function adsense_injector_install() {

  // TODO Please review the conversion of this statement to the D7 database API syntax.

  /* db_query("UPDATE {system} SET weight = 10 WHERE name = 'adsense_injector'") */
  db_update('system')
    ->fields(array(
    'weight' => 10,
  ))
    ->condition('name', 'adsense_injector')
    ->execute();
}

/**
 * @todo Please document this function.
 * @see http://drupal.org/node/1354
 */
function adsense_injector_update_5000() {
  $ret = array();

  // TODO update_sql has been removed. Use the database API for any schema or data changes.
  $ret[] = array();

  // hook_update_N() no longer returns a $ret array. Instead, return
  // nothing or a translated string indicating the update ran successfully.
  // See http://drupal.org/node/224333#update_sql.
  return t('TODO Add a descriptive string here to show in the UI.');
}

/**
 * @todo Please document this function.
 * @see http://drupal.org/node/1354
 */
function adsense_injector_update_6000() {

  // This is just a fork of 5000.
  $ret = array();

  // TODO update_sql has been removed. Use the database API for any schema or data changes.
  $ret[] = array();

  // hook_update_N() no longer returns a $ret array. Instead, return
  // nothing or a translated string indicating the update ran successfully.
  // See http://drupal.org/node/224333#update_sql.
  return t('TODO Add a descriptive string here to show in the UI.');
}

Functions

Namesort descending Description
adsense_injector_install @todo Please document this function.
adsense_injector_update_5000 @todo Please document this function.
adsense_injector_update_6000 @todo Please document this function.