I wanted to use the "active tags"-module. But the use of Content Taxonomy breaks it since the function "content_taxonomy_form_alter" resets the form.

In active_tags_popular.module (current build) the form-alter-function is checked for "$form['taxonomy']['tags']". It exists at this point and a function is added "#after_build".

I can be solved by adding the simple fix to content-taxonomy (The "tag"-attribute has to be copied):

    if ($empty_fieldset) {
      $old_taxonomy = $form['taxonomy'];
      // creating an empty taxonomy array is causing errors on preview in the taxonomy module
      // so we create an empty value field as placeholder, which is going to prevent the errors
      $form['taxonomy'] = array('#tree' => TRUE);
      $form['taxonomy']['key'] = array('#type' => 'value', '#value' => '');
      if(array_key_exists('tags', $old_taxonomy)) {
      	$form['taxonomy']['tags'] = $old_taxonomy['tags'];
      }
    }

Comments

xjm’s picture

Status: Active » Closed (duplicate)

I believe this is a duplicate of #560722: Active Tags Popular support.