Commit 70c1ccfca88f50f809ae2f44ad7f9179f0c76d49

Authored by Adhidarma Hadiwinoto
1 parent affef26bb6
Exists in master

debug

Showing 1 changed file with 1 additions and 0 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();
11 12
12 $data = file_get_contents("adhisimon/sinkronisasi-drupal/$machine_name.txt"); 13 $data = file_get_contents("adhisimon/sinkronisasi-drupal/$machine_name.txt");
13 $terms = unserialize($data); 14 $terms = unserialize($data);
14 sinkronisasi_import($terms); 15 sinkronisasi_import($terms);
15 } 16 }
16 17