/[drupal]/contributions/modules/taxonomy_manager/taxonomy_manager.admin.inc
ViewVC logotype

Diff of /contributions/modules/taxonomy_manager/taxonomy_manager.admin.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.17.2.20, Fri Aug 7 08:20:22 2009 UTC revision 1.1.2.17.2.21, Mon Aug 10 13:47:46 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: taxonomy_manager.admin.inc,v 1.1.2.17.2.19 2009/08/05 13:54:54 mh86 Exp $  // $Id: taxonomy_manager.admin.inc,v 1.1.2.17.2.20 2009/08/07 08:20:22 mh86 Exp $
3    
4  /**  /**
5   *   *
# Line 1379  function taxonomy_manager_check_language Line 1379  function taxonomy_manager_check_language
1379    return TRUE;    return TRUE;
1380  }  }
1381    
 /**  
  * returns language of a term (multilingual voc), if i18ntaxonomy enabled  
  */  
 function _taxonomy_manager_term_get_lang($tid) {  
   if (module_exists('i18ntaxonomy')) {  
     return db_result(db_query("SELECT language FROM {term_data} WHERE tid = %d", $tid));  
   }  
   return "";  
 }  
   
1382    
1383  /**  /**
1384   * Submit handler for moving terms   * Submit handler for moving terms
# Line 1633  function taxonomy_manager_term_data_edit Line 1623  function taxonomy_manager_term_data_edit
1623        $msg = t('Invalid language selection');        $msg = t('Invalid language selection');
1624        $is_error_msg = TRUE;        $is_error_msg = TRUE;
1625      }      }
1626        else if (!count($typed_terms) && count($translation_terms) && empty($param['edit-term-data-translations-op-lang'])) {
1627          $msg = t('Missing language for new term');
1628          $is_error_msg = TRUE;
1629        }
1630      else {      else {
1631        $translations = i18ntaxonomy_term_get_translations(array('tid' => $tid), FALSE);        $translations = i18ntaxonomy_term_get_translations(array('tid' => $tid), FALSE);
1632        foreach ($translations as $translation) {        foreach ($translations as $translation) {

Legend:
Removed from v.1.1.2.17.2.20  
changed lines
  Added in v.1.1.2.17.2.21

  ViewVC Help
Powered by ViewVC 1.1.2