随笔 - 612, 文章 - 0, 评论 - 31, 阅读 - 74万

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

08 2013 档案

摘要:1 /** 2 * Invokes a hook in all enabled modules that implement it. 3 * 4 * All arguments are passed by value. Use drupal_alter() if you need to pass 5 * arguments by reference. 6 * 7 * @param $hook 8 * The name of the hook to invoke. 9 * @param ...10 * Arguments to pass to the hook.11 ... 阅读全文

posted @ 2013-08-14 11:46 eastson 阅读(619) 评论(0) 推荐(0) 编辑

摘要:1 /** 2 * Passes alterable variables to specific hook_TYPE_alter() implementations. 3 * 4 * This dispatch function hands off the passed-in variables to type-specific 5 * hook_TYPE_alter() implementations in modules. It ensures a consistent 6 * interface for all altering operations. 7 *... 阅读全文

posted @ 2013-08-13 14:53 eastson 阅读(819) 评论(0) 推荐(0) 编辑

摘要:1935年,在纽约市一个最贫困最脏乱地区的法庭上,一名老妇人因偷窃面包正被审问。老妇人头发凌乱,手在微微发抖,嗫嚅着说:“原谅我。我需要面包,来喂养我那几个饿得直哭的孙儿,他们好几天没吃东西了……”她抬手去抹眼角的泪水。法官依然冷若冰霜,当庭宣称:“我必须秉公办事,你可以选择10美元的罚款或者10天的拘役。”判决宣布后,时任纽约市长的拉瓜地亚从旁听席上站起来,脱下帽子,放进5美元,然后向其他人说:“现在,请诸位每人另交50美分的罚金,这是为我们的冷漠付费,以处罚我们生活在一个要老祖母去偷面包喂养孙儿的城市。”旁听席上的每个人闻之动颜,认认真真地捐出了50美分。按理说,一个老妇人偷窃面包被罚款, 阅读全文

posted @ 2013-08-12 08:58 eastson 阅读(244) 评论(0) 推荐(0) 编辑

摘要:Drush(Drush = Drupal + Shell)就是使用命令行命令来操作Drupal站点,它的命令格式与git类似,都是双字命令(drush + 实际的命令)。既然是命令行命令,也就可以使用其他脚本来实现相同的功能,比如编写shell脚本来实现相同的功能,也的确有不少人这样做过。但是,使用Drush要远优于编写自己的脚本,好处在于,一是可以利用Drush开发社区的力量,二是Drush的命令更加可靠,适用于更多变的环境。从安全性考虑,Drush应当安装站点之外的目录下。官方站点上介绍,最简单的安装方法是使用PEAR工具,但是很多共享主机可能并不提供此工具。下面介绍的是通过git来安装最 阅读全文

posted @ 2013-08-09 15:23 eastson 阅读(1193) 评论(0) 推荐(0) 编辑

摘要:WindowsAfter you have downloaded and installed PHP, you have to manually execute the batch file located in e.g.c:\php\go-pear.bat. The setup will ask you some questions and afterwards the PEAR Package Manager will be installed in the path, which you have specified during installation.Finally you hav 阅读全文

posted @ 2013-08-09 14:48 eastson 阅读(155) 评论(0) 推荐(0) 编辑

摘要:1. 安装并启用CKEditor和IMCE模块。2. 配置CKEditor:3.配置用户的权限即可。最终效果图: 阅读全文

posted @ 2013-08-07 17:42 eastson 阅读(229) 评论(0) 推荐(0) 编辑

摘要:Views模块:使用Drupal 6 Views Module系列(一)主题:Drupal Zen 基模板菜鸟终结者:认识Zen|增加对Nice Menus 的支持|一些基于Zen的子模板|drupalla.com案例讲解Drupal主题制作指南(v6) 阅读全文

posted @ 2013-08-07 15:31 eastson 阅读(220) 评论(0) 推荐(0) 编辑

摘要:下面是一些网上免费的drupal教程,这些教程将对初学者和那些从别的CMS转向drupal的开发者非常有帮助。初级教程1.在开始用drupal之前,你要知道一些基本的东西,内容很简单,但有些还是值得做个笔记的,http://drupal.org/getting-started/before.2.如果你想完整地读一本面象初级者的教程,你可以参照Drupal cookbook for beginners(PDF),如果你想在线阅读,可以参照http://drupal.org/handbook/customization/tutorials/beginners-cookbook.3.如果你想找关于d 阅读全文

posted @ 2013-08-07 13:56 eastson 阅读(603) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示