drupal-modules

Drupal Site install on localhost after downloading source using FTP

早过忘川 提交于 2019-12-11 05:53:21
问题 I've been working on a Drupal site and pretty much know how to install Drupal on the localhost. But when I downloaded the existing source code from the main site to my system ( using FTP ), I am unable to install the site inspite of changing the database url in the settings.php file. Also, when I run localhost/site/install, I am able to complete the installation but when I view the existing site ( localhost/site ) I am not able to see any content. I am using Ubuntu 12.04 and Druapl 6.x. Any

After moving my Drupal 7 site to another host, modules are appeared without download

依然范特西╮ 提交于 2019-12-11 04:24:46
问题 I'm sorry for such a complex subject. My problem is. I tried to move my Drupal 7 site from one server to another. I uploaded a fresh install to my new site. I backed up my old database and imported to my new site. I uploaded settings.php file to my new site. When i entered to my new site's module part, All the 3rd party modules i installed in my old site, exist in my new site without any loss :) But when i check the folders /sites/all/modules /sites/default /modules I couldn't find any file

How to register a user to Drupal 6.x without using the API?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 02:27:35
问题 We have to have a "register" method available via web service that is written in java so hence forth we do not have access to the Drupal API. But we need to be able to register a user successfully. Simply adding a user to the users table will not do it as the newly created users are never able to login successfully. Again I love the Drupal API and would always use that as that is the "correct" way to do it but in this case we just dont have the faculty to do that. Any insights to this dilemma

Can you Control the Order of Hooks “Firing” in Drupal?

我是研究僧i 提交于 2019-12-11 00:45:56
问题 If two modules implement the same hook in Drupal, does the system have a way to define which order the hook functions are called, or is it just luck of the draw/alphabetical ordering? Or something else? Or does my question show I misunderstand hooks in some fundamental way that makes me look dumb? 回答1: The order is determined based on the weight setting for the module in the system table. If two modules have the same weight, the order is alphabetical. 回答2: Take a look at module weight in

Why does my SQL data cause my chart's Y axis to jump to infinity?

孤街浪徒 提交于 2019-12-10 23:29:57
问题 I have been trying to build a graph using open Flash Chart 2 in Drupal (Well, the problem isn't related to Drupal or the graphs and chart module) For the graph I am fetching the data from a MySQL database. Below is the function which gets the data and generates the graph: function my_module_charts_graphs_test() { global $user; $uname = $user->name; $sql = "Select total_calorie from health_calorie_consumed where name = '%s'"; $result = db_query($sql,$uname); while($row = db_fetch_array($result

Drupal 6: Implement Wysiwyg on Custom Module Form

折月煮酒 提交于 2019-12-10 20:44:06
问题 I have a custom form that I have written with the Form API. We have the WYSIWYG module and TinyMCE implemented on the site that this module will be used on. How do I implement the WYSIWYG api on my custom form text areas? Thanks! 回答1: This should help integrate WYSIWYG with your custom module forms: http://drupal.org/node/358316 Basically, you need to add the format key to each of your form fields and use filter_form() 回答2: Just in case anybody working with Drupal 7, here's the link to it

Drupal hook_views_post_execute not getting called

拥有回忆 提交于 2019-12-10 14:15:50
问题 I'm trying to hook into the hook_views_post_execute event in Drupal 7, my module called foo is located in sites/default/modules/features/foo . My foo.module file contains a definition for the hook_views_api function, defined like this: function foo_views_api() { return array("version" => 3.0); } This function gets called, but my implementation of the hook_views_post_execute does not, it's defined (in the same foo.module file) like this: function foo_views_post_execute(&$view) { $seen_rows =

Include OpenId in drupal

半世苍凉 提交于 2019-12-10 07:14:22
问题 i want to create a OpenId login system like stackoverflow :) in drupal..By default, drupal doesn't offer this..is there any plugin that does this job? EDIT:the user should ALSO be able to login with their yahoo, gmail, aol or blogger account..u guys can't understand my pro.. it's simple..i've openID enabled in my drupal 6. When i try to use my gmail or yahoo account, it doesn't login. What should i do for that? 回答1: Yes, there's a module for that. But you added a drupal-6 tag, which suggests

Passing arguments using drupal_get_form()

醉酒当歌 提交于 2019-12-08 17:43:45
问题 Here is my custom module using hook, Assume if I want to pass argument to custom1_default_form function call, how should i pass the argument? <?php function custom1_block($op,$delta=0){ if($op=='list'){ $block = array(); $block[0]['info']=t('hello world'); return $block; }else if($op=='view'){ $block_content = '<p>THIS IS MY FIRST BLOCK</p>'; $block['subject'] = 'HELLO WORLD'; $block['content'] =drupal_get_form('custom1_default_form'); return $block; } } function custom1_default_form () {

Fatal error: Call to undefined function lock_acquire()

﹥>﹥吖頭↗ 提交于 2019-12-08 14:48:24
I'm using Drupal Version 6.25. I duplicated an existing drupal page and tried to install it locally on my system. After the Step where I entered the database information I got this fatal error: Fatal error: Call to undefined function lock_acquire() it seems to be located in: modules/system/system.module on line 810 but unfortunately I couldn't figure out how to fix it. Hopefully somebody of you know how to fix it because I can't go any further and I need this duplication locally. At the top of the PHP in system.module add: include_once './includes/lock.inc'; Then run update.php and clear your