You are here

taxonomy_defaults.install in Taxonomy Defaults 5

File

taxonomy_defaults.install
View source
<?php

/**
 *
 * 
 * 
 * Drupal version: 
 * 
 * @author: Heine Deelstra
 */

/**
 * Hook sets taxonomy_defaults 'weight' to -1. This ensures that it's hook_form_alter runs before taxonomy
 * 
 */
function taxonomy_defaults_install() {
  $ret = array();
  $ret[] = db_query("UPDATE {system} SET weight = -1 WHERE name = 'taxonomy_defaults'");
  return $ret;
}

Functions

Namesort descending Description
taxonomy_defaults_install Hook sets taxonomy_defaults 'weight' to -1. This ensures that it's hook_form_alter runs before taxonomy