You are here

function taxonomy_machine_name_update_8001 in Taxonomy Machine Name 8

Update machine names for existing terms.

File

./taxonomy_machine_name.install, line 31
Install, update functions for the Taxonomy Machine Name module.

Code

function taxonomy_machine_name_update_8001(array &$sandbox = NULL) {
  $context = [
    'sandbox' => &$sandbox,
  ];
  taxonomy_machine_name_update_all_terms($context);

  // Update engine names it different, sigh...
  $sandbox['#finished'] = $context['finished'];

  // Update engine does this different, too.
  return $context['message'];
}