summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-09-27 20:37:01 +0000
committerDries Buytaert <dries@buytaert.net>2008-09-27 20:37:01 +0000
commit9f3d9f11158aec709dac7d67b99ff6fd8c2c634d (patch)
tree68fc762cb0dd1bdb7b86483c4e12be6aa69dcabc /modules/taxonomy/taxonomy.module
parent0d84b9184948372469480fa32daab66d37c95df6 (diff)
downloadbrdo-9f3d9f11158aec709dac7d67b99ff6fd8c2c634d.tar.gz
brdo-9f3d9f11158aec709dac7d67b99ff6fd8c2c634d.tar.bz2
- Patch #161301 by Eaton, Sun, moshe and webchick: make checking for node edit forms easier. DX improvement.
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r--modules/taxonomy/taxonomy.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 438ddf0fe..be11c08c6 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -503,7 +503,7 @@ function taxonomy_get_vocabularies($type = NULL) {
* and provide scalable alternatives.
*/
function taxonomy_form_alter(&$form, $form_state, $form_id) {
- if (isset($form['type']) && isset($form['#node']) && (!variable_get('taxonomy_override_selector', FALSE)) && $form['type']['#value'] . '_node_form' == $form_id) {
+ if (!variable_get('taxonomy_override_selector', FALSE) && !empty($form['#node_edit_form'])) {
$node = $form['#node'];
if (!isset($node->taxonomy)) {