柳暗花明笔记

    drupal 分类好用的函数

    所属分类:[ php&web ] 猫哲学家 发表于:2012-07-31 23:03 浏览:375

    两个drupal 分类好用的函数:

    print_r(taxonomy_get_vocabularies('help')); Array ( [7] => stdClass Object ( [vid] => 7 [name] => help [description] => 帮助分类 [help] => 帮助分类 [relations] => 1 [hierarchy] => 1 [multiple] => 0 [required] => 0 [tags] => 0 [module] => taxonomy [weight] => 0 [language] => [nodes] => Array ( [help] => help ) ) ) print_r(taxonomy_get_term_by_name('帮助中心')); Array ( [0] => stdClass Object ( [tid] => 52 [vid] => 7 [name] => 帮助中心 [description] => [weight] => 0 [language] => [trid] => 0 ) )

    标签: drupal 
    上一编文章 magento一个很要命的数据库操作缓存 下一编文章 drupal 好用的node_load
    最近文章
    发表评论