function taxonomy_image_attach_install in Taxonomy Image 5
Same name and namespace in other branches
- 6 contributed/taxonomy_image_attach/taxonomy_image_attach.install \taxonomy_image_attach_install()
Implementation of hook_install().
File
- contributed/
taxonomy_image_attach/ taxonomy_image_attach.install, line 11 - taxonomy_image_attach.install.
Code
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);
}