
Drupal
stefan321
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
drupal block
Template files are searched in the following order:[list][*] block-[module]-[delta].tpl.php[*] block-[module].tpl.php[*] block-[region].tpl.php[*] block.tpl.php[/list]...2009-09-29 16:00:53 · 152 阅读 · 0 评论 -
正则特殊符号
[list][*]/ 定界符[*]^ 字符串头[*]$ 字符串尾[*][a-z] 所有小写字母[*][A-Z] 所有大写字母[*][0-9] 所有数字[*]? 零或一个紧接前的字符[*]* 零或多个紧接前的字符[*]+ 一或多个紧接前的字符[*]{4} 4个紧接前的字符[*]{4,8} 4-8个紧接前的字符[*]. 任意字符[*](red|gre...原创 2009-11-20 17:23:20 · 114 阅读 · 0 评论 -
Drupal 常用操作
[code="java"]//Retrieve the comment mode for the given node ID (none, read, or read/write).db_result(db_query('SELECT comment FROM {node} WHERE nid = %d', $nid));[/code]原创 2009-11-17 19:47:20 · 107 阅读 · 0 评论 -
Hook_theme
[code="java"]/** * Implementation of hook_theme() */function node_theme() { return array( 'node' => array( 'arguments' => array('node' => NULL, 'teaser' => FALSE, 'page' => FALS...原创 2009-11-17 17:40:30 · 119 阅读 · 0 评论 -
Drupal checking if user has a role
[code="java"][/code][code="java"][/code]2009-11-11 22:31:37 · 90 阅读 · 0 评论 -
xml header
[code="java"]header('Content-Type: text/xml');[/code]2009-11-10 14:11:02 · 536 阅读 · 0 评论 -
Drupal: base url
[code="java"][/code]2009-11-05 17:11:57 · 155 阅读 · 0 评论 -
Drupal: Display Block Only For a Specific Node Type
[code="java"][/code]In this particular case, we will only display the block if node type is "event".2009-11-05 16:58:19 · 102 阅读 · 0 评论 -
php 缓存操作
php输出东西,会保存在一个php维护的内存里,称为buffer也行,缓存也行,都是一个意思。然后当这个buffer满了,php会自动往web server发送这些数据。也就是说每次echo,并不一定会输出东西,而是保存在buffer里。ob_start()的意思,可以理解为(但是实际上和我下面的说法有区别),这个buffer由ob_系列函数来来控制,也就是,PHP不会维护自己的 ...2009-11-03 21:07:37 · 122 阅读 · 0 评论 -
分页链接 theme_pager
theme_pager ( $ tags = array(), $ limit = 10, $ element = 0, $ parameters = array(), $ quantity = 9 ) Format a query pager. Menu callbacks that display paged ...2009-10-12 23:36:11 · 144 阅读 · 0 评论 -
Drupal Module
module.info[code="java"]; $Id$name = Form exampledescription = Shows how to build a Drupal form.package = Pro Drupal Developmentcore = 6.x[/code]module.module[code="java"]2009-10-07 11:42:41 · 157 阅读 · 0 评论 -
Drupal Form API
Drupal Form APIDrupal’s form engine takes care of generating HTML for the forms to be displayed and securely processing submitted forms using three phases: validation, submission, and redirection....2009-10-07 10:59:44 · 137 阅读 · 0 评论 -
Drupal 数据库
[code="java"]$type = 'blog';$status = 1; // In the node table, a status of 1 means published.$sql = "SELECT * FROM {node} n WHERE type = '%s' AND status = %d ORDER BYn.created DESC";$result = ...2009-10-05 15:58:50 · 106 阅读 · 0 评论 -
page tpl
[code="php"]2010-04-21 12:01:04 · 145 阅读 · 0 评论