/** * Implements hook_block_info(). */ function my_form_block_info() { $blocks['myblock1'] = array( 'info' => t('myblocktitle1'), //在区块列表中显示的标题 'cache' => DRUPAL_NO_CACHE ); return $blocks; } /** * Implements hook_block_view(). */ function my_form_block_view($delta = '') { $block = array(); switch ($delta) { case 'myblock1': $block['subject'] = t('myblock1'); //区块的标题 $block['content'] = get_stest_items();//在区块中展示的内容 break; } return $block; } function get_stest_items(){ $terms = taxonomy_get_tree(1,0); $cont['items']=array(); foreach ($terms as $value) { # code... $cont['items'][] =l($value->name, 'taxonomy/term/'.$value->tid);//将分类列表下的分类词汇添加到$cont['items']中 } //dpm($cont); return theme('item_list', $cont);//将分类词汇以ul形式显示 }
相关推荐
Risk Taxonomy Risk Taxonomy Risk Taxonomy
2019+A PUF taxonomy.pdf
encompassing and richer multi-level face recognition taxonomy, facilitating the organization and categorization of available and emerging face recognition solutions; thistaxonomy may also guide ...
Laravel开发-laravel-taxonomy Laravel模型分类法
Laravel开发-taxonomy Laravel 5.x的分类库
python库。 资源全名:taxonomy-connector-1.11.1.tar.gz
We propose a taxonomy of botnet structures, based on their utility to the botmaster. We propose key metrics to measure their utility for various activities (e.g., spam, ddos). Using these performance ...
TaxonID_Taxonomy.pl
资源来自pypi官网。 资源全名:taxonomy_ranks-0.0.7.tar.gz
python库。 资源全名:taxonomy-0.7.0-cp38-cp38-manylinux1_x86_64.whl
资源分类:Python库 所属语言:Python 资源全名:rcsb.utils.taxonomy-0.24.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
Visual-and-Language Navigation A Survey and Taxonomy.zip
Human computation- a survey and taxonomy of a growing field
Shallow and Deep Networks Intrusion Detection System: A Taxonomy and Survey Elike Hodo
Data quality is a vital topic for business analytics in order to gain accurate insight and make correct decisions in many data-intensive industries. Albeit systematic approaches to categorize, detect,...
SAE J3016:2021 Taxonomy and Definitions for Terms Related to Dri
Taxonomy-Images-源码.rar
This paper gives the main definitions relating to dependability, a generic concept including as special case such attributes as reliability, availability, safety, integrity, maintainability, etc....
要安装ckanext-taxonomy,应遵循以下步骤: 安装代码 cd /usr/lib/ckan/default/src git clone https://github.com/datagovuk/ckanext-taxonomy.git cd ckanext-taxonomy python setup.py install 注意,您不应该...