You are here

function taxonomy_machine_name_install in Taxonomy Machine Name 8

Same name and namespace in other branches
  1. 7 taxonomy_machine_name.install \taxonomy_machine_name_install()

Implements hook_install().

File

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

Code

function taxonomy_machine_name_install() {
  batch_set([
    'file' => drupal_get_path('module', 'taxonomy_machine_name') . '/taxonomy_machine_name.install',
    'title' => t('Generating missing taxonomy term machine names'),
    'init_message' => t('Starting taxonomy term machine names update'),
    'error_message' => t('Error updating taxonomy term machine names'),
    'operations' => [
      [
        'taxonomy_machine_name_update_all_terms',
        [],
      ],
    ],
  ]);
}