Commit e92b25d6e03130e0155a0ea8e02dfdc3e369a7bf
1 parent
70c1ccfca8
Exists in
master
delete
Showing 1 changed file with 0 additions and 1 deletions Inline Diff
sinkronisasi_import.php
1 | <?php | 1 | <?php |
2 | 2 | ||
3 | require("sinkronisasi.include.php"); | 3 | require("sinkronisasi.include.php"); |
4 | 4 | ||
5 | if (function_exists('drush_main')) { | 5 | if (function_exists('drush_main')) { |
6 | $machine_name = "jenis_kantor"; | 6 | $machine_name = "jenis_kantor"; |
7 | 7 | ||
8 | $vocabulary = taxonomy_vocabulary_machine_name_load($machine_name); | 8 | $vocabulary = taxonomy_vocabulary_machine_name_load($machine_name); |
9 | 9 | ||
10 | delete_all_terms_by_vid($vocabulary->vid); | 10 | delete_all_terms_by_vid($vocabulary->vid); |
11 | die(); | ||
12 | 11 | ||
13 | $data = file_get_contents("adhisimon/sinkronisasi-drupal/$machine_name.txt"); | 12 | $data = file_get_contents("adhisimon/sinkronisasi-drupal/$machine_name.txt"); |
14 | $terms = unserialize($data); | 13 | $terms = unserialize($data); |
15 | sinkronisasi_import($terms); | 14 | sinkronisasi_import($terms); |
16 | } | 15 | } |
17 | 16 |