3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
farmOS/modules/farm/farm_term/farm_term.install

26 lines
710 B
Plaintext

<?php
/**
* @file
* Farm term install.
*/
/**
* Implements hook_install().
*/
function farm_term_install() {
// Override the taxonomy_terms_per_page_admin variable that is used by Drupal
// internally to split the /admin/structure/taxonomy/[vocab] form up across
// multiple pages. This makes it difficult to rearrange the hierarchy of
// terms across pages. So we are just setting this to a very large number to
// prevent pagination entirely.
variable_set('taxonomy_terms_per_page_admin', 1000000000);
}
/**
* Set the taxonomy_terms_per_page_admin variable to a large number.
*/
function farm_term_update_7000(&$sandbox) {
variable_set('taxonomy_terms_per_page_admin', 1000000000);
}