随笔分类 -  drupal7

摘要:模块文件结构:job_post.infojob_post.installjob_post.modulesponsor.tpl.php1.job_post.info:1 name = Job Post2 description = A job posting content type3 package = Pro Drupal Development4 core = 7.x5 files[] = job_post.install6 files[] = job_post.module2.job_post.install: 1 <?php 2 /** 3 * @file 4 * Inst... 阅读全文
posted @ 2012-12-26 10:39 wangkangluo1 阅读(822) 评论(0) 推荐(0) 编辑
摘要:模块文件结构:annotate.infoannotate.moduleannotate.admin.incannotate.install1. 在drupal目录sites/all/modules/custom 下新建文件夹annotate.(如果custom不存在,请自行建立)2.新建文件annotate.info(模块描述文件):name = Annotatedescription = "Allows users to annotate nodes."package = Pro Drupal Developmentcore = 7.xfiles[] = annotate 阅读全文
posted @ 2012-12-25 15:11 wangkangluo1 阅读(1107) 评论(0) 推荐(0) 编辑
摘要:原文http://hellodrupal.info/node/149模块文件结构:sitemode.infositemode.moduletest_ajax.jssitemode.info; $Id$name = Sitemoddescription = A content type for jokes.package = Pro Drupal Developmentcore = 6.xsitemode.module<?phpfunction sitemod_menu() {// 建立一个模块 sitemod $items = array(); $items['ajax' 阅读全文
posted @ 2012-11-26 15:03 wangkangluo1 阅读(1967) 评论(0) 推荐(0) 编辑

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