Commit ae4a71b86080df6245309fd29291efe9de619ead

Authored by Adhidarma Hadiwinoto
1 parent 382c422303
Exists in master

fix typos

Showing 1 changed file with 1 additions and 5 deletions Side-by-side Diff

sinkronisasi.include.php
... ... @@ -160,15 +160,12 @@ function sinkronisasi_export($vocabulary_machine_name) {
160 160 }
161 161  
162 162 function delete_all_terms_by_vid($vid) {
163   - if (!$this->drush()) {
164   - return;
165   - }
166 163  
167 164 $query = new EntityFieldQuery();
168 165 $query->entityCondition('entity_type', 'taxonomy_term');
169 166  
170 167 if (!$vid) {
171   - $this->fatal_error("Unknown vid");
  168 + drush_die("Unknown vid");
172 169 }
173 170  
174 171 $query->propertyCondition('vid', $vid);
... ... @@ -184,5 +181,4 @@ function delete_all_terms_by_vid($vid) {
184 181 echo taxonomy_term_delete($term->tid);
185 182 echo "\n";
186 183 }
187   -
188 184 }