You are here

function media_browser_plus_taxonomy_term_update in Media Browser Plus 7.2

Same name and namespace in other branches
  1. 7.3 media_browser_plus.module \media_browser_plus_taxonomy_term_update()

Implements hook_taxonomy_term_update().

See also

media_browser_plus_taxonomy_term_presave()

File

./media_browser_plus.module, line 2146
Adds fields to the media browser forms for better UX

Code

function media_browser_plus_taxonomy_term_update($term) {

  // Check if this is a folder term and the source path is set.
  if (!empty($term->media_browser_plus_original_path)) {
    module_load_include('inc', 'media_browser_plus', '/includes/media_browser_plus.folders');

    // Update physical folder.
    $destination = media_browser_plus_construct_dir_path($term);
    media_browser_plus_move_subfolder($term, $term->media_browser_plus_original_path, $destination);
  }
}