You are here

function media_browser_plus_form_taxonomy_overview_terms_validate in Media Browser Plus 7.3

Validation handler for the taxonomy term overview list.

This is necessary since altering the hierarchy or weight of terms in the overview won't trigger any term hooks *blargh* :|

1 string reference to 'media_browser_plus_form_taxonomy_overview_terms_validate'
media_browser_plus_form_taxonomy_overview_terms_alter in ./media_browser_plus.module
Implements hook_form_FORM_ID_alter().

File

./media_browser_plus.module, line 754
Media Browser Plus - enhanced file management functions.

Code

function media_browser_plus_form_taxonomy_overview_terms_validate(&$form, &$form_state) {
  $vocabulary = $form['#vocabulary'];
  $tree = taxonomy_get_tree($vocabulary->vid);
  foreach ($tree as $term) {
    $form_state['#mbp_original_paths'][$term->tid] = media_browser_plus_construct_dir_path($term);
  }
}