This is a special tag that is designed to be used only by the system for questions that have had all of their other tags removed. Do not add this tag to existing questions, it is reserved for use by the system to identify posts with no valid tags.

learn more… | top users | synonyms

0
votes
3answers
2k views

“syntax error, unexpected end of file” Upon enabling modules

I'm getting a syntax error when enabling modules. This is happening intermittently and it isn't specific to any module in particular, which is making it impossible for me to track down. Here is the ...
0
votes
3answers
157 views

How should a custom module install a reference data dictionary?

I'm about to write a custom module dealing with chemical hazards symbols. It's basically a 300-item dictionary of simple objects: a symbol, its description (around 100 chars) and in some cases a ...
0
votes
1answer
741 views

Fatal error: Call to undefined function lock_initialize()

I am getting this error on a Drupal 7 site on Ubuntu 12.10. I downgraded PHP from 5.4 to 5.3, but am still getting it. Does anyone recognize this error? Fatal error: Call to undefined function ...
0
votes
2answers
43 views

php syntax unexpected T_BOOLEAN_OR [closed]

I need help with php code that is not working - most likely due to wrong syntax. <?php global $user; if (user_access('access administration pages')){ return FALSE; } else { return TRUE; } ?> ...
2
votes
1answer
685 views

drupal_attributes() must be an array, string given, /drupal-7.15/includes/theme.inc on line 2070 [closed]

Hi I am new to Drupal and working my way through the book Drupal 7 Module Development The book has the following code function first_block_view($block_name = '') { if ($block_name == ...
1
vote
2answers
73 views

Update Drupal Module Code

I am updating code for an installed module. For example, I commented out a few lines of PHP in the php file (modulename.module). But, my updates are not being reflected. I have tried clearing the ...
0
votes
1answer
46 views

Drupal6 reference URL date in views filter?

I apologize if this is already explained somewhere, I haven't found it. I have a view in drupal6 based on the date browser example. I want to show all items having a date greater or equal than the ...
0
votes
1answer
1k views

Call to undefined function user_access

I have installed Drupal 6.26 using git. When I am trying to open http://myhost.com/user/1 I get the following error: [Tue Jul 31 11:48:01 2012] [error] [client 111.222.333.444] PHP Fatal error: ...
0
votes
1answer
365 views

“Undefined index: preview_image_style” [closed]

I have this error message, which I know is related to the multiupload_filefield_widget module. If I disable this module the message disappear. I found this issue which mention this message but ...
0
votes
2answers
552 views

Steps to Create a copy of a Drupal 7 website using cpanel?

I want to create an exact copy of an existing drupal 7 website in a subdomain. What steps should I take to do this using just cpanel?
0
votes
1answer
46 views

Insert into List(Text) Field

I have a Drupal content type that includes Zip Codes (Postal Codes). An unlimited number of Zip Codes is allowed, and the Zip Codes are defined in the "Allowed Values List" in the field definition. ...
0
votes
2answers
281 views

store an associative array in a file

I am coding a module for drupal. In that I have a large associative array which has key as 'string' and values as 'floats' . eg. $array = array('hello' => 122.23, 'name' => 334.3 ....) I was ...
0
votes
1answer
64 views

Porting Dictionary from D6 to D7

I just jump't in to some Drupal developing and working on porting the module Dictionary from 6.x to 7.x So far things are going good, just need a lite helping hand if anyone doesn't mind. The API for ...
1
vote
3answers
249 views

How to delete a module from the Modules menu? [closed]

I have installed a few modules that I don't use at all. I can't find any option to uninstall them. How do I do it? Is there a separate module to do it?
1
vote
1answer
160 views

subnavigation doesn't show in drupal 7.14 (Bartik)

I would like to have a menu point in my main naavigation with sub menu points. I created a main point +Services with two points underneath it where I assigned the respective "Parent link". The ...
2
votes
1answer
194 views

How can we render graphviz diagrams in drupal pages?

I'd like to be able to allow users to insert Graphviz images in Drupal comments and Wiki pages. What's involved it doing this? The benefit is that users could enter something like the following ...
0
votes
0answers
174 views

Drupal 7 Admin page creation

I am new to drupal 7, and am trying to figure out how to create a custom Admin page. I want to provide some extra functionality to admins, and cannot figure out how to create a page that comes up with ...
3
votes
2answers
2k views

How to handle GET parameters in the proper Drupal way

I am working on a module that will handle the email subscription functions for our newsletters. Email newsletters are sent out to subscribers with a link on them for them to unsubscribe. This link is ...
3
votes
0answers
446 views

Should I clear Boost caches during cron tasks, or when saving nodes? [closed]

edit I deactivated the boost module and the saving performance was 'boosted' I have a site powered by Drupal 6 and the Boost module. I'm using the triad CCK, Views and Panels as well. The ...
1
vote
0answers
106 views

Drupal Data Module [closed]

I am currently using the Data module. Has anyone added a datetime data type to it? I am currently running MySQL and I would love for this datatype to be available in this module.
1
vote
0answers
686 views

A custom module is not showing up [closed]

I am trying to do a test custom module. I can see it in the module list and I can activate it. When I go to domain/helloworld I get a file not found. The ".htaccess" file is in place, and it looks ...
2
votes
1answer
206 views

Any good books/tutorials on Drupal for an advanced PHP developer? [closed]

I am a PHP developer and I have quite lots of experience in working with OOP and MVC. I want a book, which would be dedicated to guys like me. What would you suggest? Thank you very much for your ...
-2
votes
1answer
295 views

upload SWF, FLV banners [closed]

We have a Drupal website, in site we have an ads place but just allowed "jpg, gif, jpeg' so I want to upload Swf and flv file to ads place, I would try to change imagefield extension files, and in ...
2
votes
3answers
901 views

How to trace PHP errors

I am getting the following errors from Googlebot; I am getting about 5 of them per minute, and I want to find out what is causing them. Type php Date Friday, February 3, 2012 - 08:16 User ...
3
votes
1answer
95 views

What is a Content Management Platform?

Currently Drupal defines itself as a "Content Management Platform". My assumption is that they are trying to differentiate themselves from CMS which provide a much more specific goal, such as a wiki ...
0
votes
2answers
56 views

Advertising limitations [closed]

I was wondering if there are any advertising limitations when using a Drupal CMS. Wordpress, until recently only allowed you to place ads after reaching a certain amount of traffic. Also, I am ...
0
votes
1answer
47 views

Why are configuration pages refreshing instead of saving their settings?

I've moved my site to a Debian GNU/Linux server. MySQL is on a different server used specifically for databases. When the site was on Windows, the connection to the MySQL database was not an issue and ...
0
votes
1answer
491 views

How to add a custom display field to a content type in Drupal 6

Hi i am trying to add a custom field to a content type which would be un editable. And view able. A php code to do some database access and prepare a xml file. call a Swf animation will. When user ...
1
vote
3answers
299 views

Module Development: Adding multiple fields of optional input

A user, across different Drupal installs, is generally the same concept. To be more basic, every user has an email address, username, and password. Let's say I write a module that works with users and ...
1
vote
3answers
738 views

is there any way to implement java into drupal?

I am a programmer, I primarily program in java, but I am now working with drupal. drupal uses html and css for most of its design, from blocks to views. but I have discovered that it is much harder to ...
3
votes
1answer
399 views

How do I get a variable used in a module from an external PHP file?

I don't know how to access a Drupal variable in the external PHP file. In the module, I assign the variable in order to use it in the template: $variables['teams'] = $output; In the template file ...
1
vote
1answer
151 views

I need help with the PHP syntax

I have the following code: <div class="zakladki"><script type="text/javascript">share42('http://ruh.kz/sites/all/themes/ruh/img/', '<?php $base_path; ?>', '<?php ...
0
votes
1answer
493 views

what's inside the includes folder?

I made a pretty dumb mistake..I was copying a library called ZendGdata to the includes folder within drupal and thought I copied all the files wrong so I deleted the folder and recopied the sub folder ...
0
votes
1answer
121 views

Can we override Drupal includes files?

I want to modify the menu.inc file that is in the Drupal "includes" folder, but I want to create an overriding file for it, so that we can easily package only our custom theme.