For details about how to create a module, see Drupal 7 module development and establishment.
If you want to support Chinese characters, the file format must be saved as UTF-8, no BOM
------------------------------
Hook_help provides help information for this module. We should replace the hook with our module name. Here we create a my_first_module_help file in the my_first_module.module file.
function my_first_module_help($path, $arg) {}
Parameters:
Drupal's own installation is very simple. Create a database, and then follow the installation instructions to do it step by step.
Drupal can provide more customization functions by installing various modules. The installation methods of these modules are basically the same. Generally, they are the following steps:
1) download related modules from Drupal module;
2) decompress the module to./modules/In the
Tags: des http io os ar for strong SP dataThis morning, foreign security researchers exposed the latest SQL injection vulnerability in Drupal 7.31, and gave the EXP code to take advantage of the test.The Drupal7.31 environment is built locally, tested to find that the code can be executed successfully and an attacker-defined user is added to the database.Test Code:(do not use for illegal purposes)POST/Drupal
Release date: 2012-05-10Updated on:
Affected Systems:Drupal 7.xDescription:--------------------------------------------------------------------------------Bugtraq id: 53454
Drupal is an open source content management platform.
The path leakage vulnerability exists in Drupal versions earlier than 7.14, and the index of the installation path is leaked through the error message. the q [] parameter of php, des/
The solution to adding modules in Drupal is confusing (usually when many modules exist ). The status is as follows: 1. after you click the "warranty" button, the page cannot be properly displayed and a blank page appears. 2. refresh the page and issue that many items in the navigation are no longer available, you cannot click another item.
The status is as follows:1. after clicking the "warranty" button, the page cannot be displayed normally and a bl
The PHP file upload form is taken from the drupal code. The following code copies an example of a drupal file upload form: functionupload_form () {$ formarray (); Ifthis # attributeisnotpresent, uploadwillfailonsubmit $ form [# attri drupal file upload form
The code is as follows:
Function upload_form (){$ Form = array ();// If this # attribute is not present,
Drupal allows third-party modules to create their own hooks. In general practice, there are two types of hooks you may want to create, one is the content modification class hook, the other is the interception class hook. Drupal's hook system allows interaction with modules and changes the logic of other modules.... Drupal allows third-party modules to create their own hooks. In general practice, there are t
Sometimes, when publishing content, We need to extract external images and store them on our servers. This can avoid affecting our website if the external images cannot be opened, now let's share the functions that Drupal implements this function. Sometimes, when publishing content, We need to extract external images and store them on our servers. This can avoid affecting our website if the external images cannot be opened, now let's share the functio
In the past, when setting the MediaWiki website, we put some common modifications in CommonSettings. php, and then LocalSettings. add the last line in php: require_once (usrlocalapache2htdocscommonCommonSettings. php), so that a series of websites can share CommonSettings. php File
In the past, when setting the MediaWiki website, we put some common modifications in CommonSettings. php, and then LocalSettings. add the last line in php: require_once ("/usr/local/apache2/htdocs/common/CommonSetting
Today, with Drupal, we have encountered a strange situation when installing ctools, kippers, views, and panels at the same time.
The status is as follows:1. after clicking the "warranty" button, the page cannot be displayed normally and a blank page appears;
2. refresh the page and send out the items in the navigation that are no longer available. you cannot click the items that still exist to enter the normal page.
After multiple tests, no problem
Drupal does not provide the dpeth interface for the term by default, but we have other methods to obtain it. We will share two methods in this article. You can choose one that suits your needs.1: self-built functions are obtained through database query.Function get_term_depth ($ tid ){$ Limit = 9;$ Depth = 1;While ($ parent = db_query ('select parent FROM {taxonomy_term_hierarchy} WHERE tid =: tid ', array (': tid' => $ tid)-> fetchFie
The proverb: 工欲善其事, its prerequisite. There are a lot of skills in Drupal theme development, and learning these skills will have a multiplier effect. Today, we recommend how to debug the print out of the twig template variables, it may be a look! Oops,drupal 8! In the Drupal 8 twig template, you can find most of the commonly used template variables in annotations
PHPcode // Are you familiar with drupal? I want to insert a script into the user_authenticate function in user. module. what can I do? Functionuser_authenticate ($ name, $ pass) about adding js to drupal
PHP code
// Are you familiar with drupal? I want to insert a script into the user_authenticate function in user. module. what can I do? Function user_aut
Many people use Drupal to build multi-blog services. Therefore, remote publishing of a blog is essential. Drupal can achieve remote publishing by supporting XML-RPC tools, of course, it is more difficult to configure Drupal than private blog systems such as WordPress, the main steps are as follows:
Select administer> site building> modules> Blog blogapi in th
Drupal uses a node to represent the content by default. node is the most basic page element in Drupal. Almost all content can be called node. Of course, its URL is not friendly. The default format is as follows:
Http: // yourdomain/node/37
This type of URL does not clearly understand the nature of the page. It is best to set a regular alias for the page (alias ).To enable
Http://www.paangood.com/howtopurchase.phpHome> forums> other discussion areas> which Drupal VM space is the best for website creation?
Website Construction
Published by scapabc on Tuesday
Drupal6 + ubercart2 is used for e-commerce websites. There are about 1 GB of images and other files, and the MySQL database is about MB. I want to rent a virtual host space. I don't know which one can recommend a suitable host space for me.
I originally ren
; } location ~. *\.
(gif|jpg|jpeg|png|bmp|swf) $ {expires 24h; Access_log off; } location ~. *\.
(JS|CSS) $ {expires 24h;
Access_log off;
}
You can restart your nginx.
Drupal Nginx Rewrite rulesDrupal is written in PHP language open source Content Management framework, is commonly known as CMS, many people are using Drupal to build their own blog, here also to share the Nginx rewrite rules
Last month, the Open-source Content management system Drupal released a high-risk vulnerability warning that basically affected all Drupal sites or more than 1 million sites. The bulletin said that a remote code execution vulnerability was found within several subsystems of Drupal 7.x and 8.x, potentially causing the site to be completely compromised. Qihoo 360 R
Release date:Updated on:
Affected Systems:Drupal Password Policy 6. x-1.xDescription:--------------------------------------------------------------------------------Bugtraq id: 56350
Drupal is an open source content management platform.
Drupal's Password Policy module has the information leakage vulnerability. Attackers can exploit this vulnerability to obtain sensitive information through man-in-the-middle attacks.
*>
Suggestion:----------------
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.