Drupal自动创建分类函数 /**  * Return the term id for a given term name.   自动创建分类  */ function _get_tid_from_term_name... (G+)

Drupal自动创建分类函数
/**  * Return the term id for a given term name.   自动创建分类  */ function _get_tid_from_term_name($term_name, $vocabulary = 'tags') {     // $vocabulary = 'zhonglei';     $arr_terms = taxonomy_get_term_by_name($term_name, $vocabulary);     if (!empty($arr_term...
via Terry Chan's Google plus

Postingan terkait: