taxonomy_defaults.install in Taxonomy Defaults 5
Same filename and directory in other branches
File
taxonomy_defaults.installView 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
Name![]() |
Description |
---|---|
taxonomy_defaults_install | Hook sets taxonomy_defaults 'weight' to -1. This ensures that it's hook_form_alter runs before taxonomy |