如何在Drupal中添加我自己的PHP代码 [英] How to add my own PHP code in Drupal

查看:468
本文介绍了如何在Drupal中添加我自己的PHP代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我想说,我不知道Drupal的一点点。但我有一个要求,我应该将一个特定的模块(它不是一个drupal模块)从一个独立的网站整合到drupal网站。



该模块将获取用户的姓名和电子邮件ID作为输入,系统将生成一个密钥,并将密钥发送给用户提供的电子邮件ID。这个模块已经实现了,我只想把它放在drupal站点上。



提前感谢

解决方案

查看模块开发人员指南:
http://drupal.org/developing/modules



和drupal安装模块页面:
http://drupal.org/documentation/install/modules-themes



您还可以将代码添加到主题的输出中使用template.php我的主题目录:
http://drupal.org/node/173880


First of all i would like to say that i dont know little bit of Drupal. But i have a requirement that i should integrate a particular module (its not a drupal module) from one stand alone website to drupal site.

The module will get name and email id as a input from the user and the system will generate one key and send the key to user's provided email id. This module already has been implemented i just wanted to place it on drupal site. How should I do that.

Thanks in advance.

解决方案

Check out the module developers guide: http://drupal.org/developing/modules

And the drupal "installing modules" pages: http://drupal.org/documentation/install/modules-themes

You can also add code to "theme" your output by using template.php i theme directory: http://drupal.org/node/173880

这篇关于如何在Drupal中添加我自己的PHP代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆