You are here

taxonomy_image_attach.install in Taxonomy Image 6

Same filename and directory in other branches
  1. 5 contributed/taxonomy_image_attach/taxonomy_image_attach.install

File

contributed/taxonomy_image_attach/taxonomy_image_attach.install
View source
<?php

/**
 * @file
 *  taxonomy_image_attach.install
 */

/**
 * Implementation of hook_install().
 */
function taxonomy_image_attach_install() {

  // This must run after the main taxonomy_image form_alter,
  // as it alters that form in turn.
  $taxonomy_image_weight = db_result(db_query("SELECT weight FROM {system} WHERE name='taxonomy_image'"));
  db_query("UPDATE {system} SET weight=%d WHERE name='taxonomy_image_attach'", 1 + $taxonomy_image_weight);
}

Functions

Namesort descending Description
taxonomy_image_attach_install Implementation of hook_install().