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

Issue #3025774: Can't rearrange area hierarchy across multiple pages

This commit is contained in:
Michael Stenta 2019-01-14 09:31:22 -05:00
parent 1d1e82cbb8
commit dbd395ef66

View file

@ -4,6 +4,20 @@
* Code for the Farm Term module.
*/
/**
* Implements hook_init().
*/
function farm_term_init() {
// 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.
global $conf;
$conf['taxonomy_terms_per_page_admin'] = 1000000000;
}
/**
* Create a new taxonomy term or load an existing term by name.
*