| 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 |
* |
* |
| 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 |
| 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) { |