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:
parent
1d1e82cbb8
commit
dbd395ef66
1 changed files with 14 additions and 0 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue