Tagged Questions

This tag is used by the system when there is a tag that has only been used on one question for six months. The system deletes the tag and replaces it with this one.

learn more… | top users | synonyms

0
votes
2answers
15 views

Drupal module development - How to build admin items list?

I'm creating a drupal module and I would like to know how to build the admin panel table with the list of each items that I've been created with the module. What is the hook to use ? and/or the API ...
0
votes
1answer
10 views

Drupal File upload only allowing one upload at a time

I'm having a problem with the File widget. I have created a content type with a file field that allows unlimited values. When I upload a file I am expecting to be able to immediately upload another ...
2
votes
2answers
249 views

Programmatically add node translation drupal 7 ( Entity translation )

I need to create multilingual node programmatically in drupal with entity_translation. No problem to create the node, but I have no idea how can I create the translation ( + field translated ) I ...
1
vote
1answer
29 views

how to store images into file_managed table from android to drupal

I have tried calling Drupal file service from android and it is storing images in application/octet format and not in image/jpeg format in file_managed table. $data['file'] ='encodedimage'; $fid = ...
0
votes
1answer
86 views

MegaDrupal MD.Foto: Module dependency displaying incompatibility status

I've downloaded the MegaDrupal MD.Foto theme. The feature module for MD.Foto has a few dependencies. One of the dependancies is on Chaos Tools, which I loaded. After doing so, I noticed that the ...
0
votes
1answer
12 views

Do I need to place the contributed modules inside “sites/all/modules” folder for drupal version upgradation from 6 to 7?

In drupal 6, I have placed my contributed modules inside root modules/ folder (not in sites/all/modules). I need to upgrade my website's drupal version from 6 to 7. Do I need to place the contributed ...
0
votes
1answer
59 views

Drupal7! Create new type element to form API?

Drupal form API (https://api.drupal.org/api/drupal/developer!topics!forms_api_reference.html/7) provide some built in type of element to build a form. But i want to create other type such as: ...
0
votes
1answer
80 views

How to get body value (drupal 7)

I would access to the description of node in body value, so i try this : // ---------------------------- // Acesseur de la descrition d'un noeud // --------------------------- function ...
2
votes
2answers
73 views

Create link libraries

Is there a way around to build link library repository on a drupal site, so that there can be one place to edit the links and changes will reflect in the instances used else where(like body field of a ...
0
votes
2answers
49 views

Save Node Title By database query

I am trying to update a node title by database query as $num_updated = db_update('node') // Table name no longer needs {} ->fields(array( 'title' => "custom_title", 'status' => ...
0
votes
0answers
12 views

Need Help in Drupal 7 [closed]

I have a new content for adding proposals. When any user creates proposal after submitting the same he can not view that proposal in the proposal list.But admin can.when admin opens proposal and ...
0
votes
0answers
200 views

Drupal custom Panels layouts do not work with Panelizer

I've created a custom Panels layout using instructions found here: https://drupal.org/node/495654 Everything works great, however, when I try to use the layout with Panelizer, I am able to select the ...
1
vote
1answer
366 views

how to export recent logs report in csv file drupal 7

Download all recent logs messages into csv file which is stored in database in Drupal 7 admin can filters records and all records and filters records should be export in csv format
0
votes
1answer
162 views

Trying to install Drupal modules and themes: keep getting error “does not contain any .info.yml files.”

I am new to Drupal. I am running Drupal 8. I have tried to install three different themes and modules, and keep getting the error: "does not contain any .info.yml files" -- including with the Beale ...
1
vote
0answers
40 views

FBOAuth Module Drupal 7 to 6 Convertion

I've been trying out this codes from this blog, and tried a couple of snippets and my trials on the codes but have no luck at the moment. This blog has ...
-4
votes
1answer
36 views

Any module for survey

How to create a survey such that the person should redirect to another set of questions depending on the answers he gave to previous set of questions. Is there any module for this?
1
vote
1answer
695 views

SuHosin configuration for Drupal 7

My web hosting provider decided to use the suhosin php extension to protect my websites. For some Drupal 7 sites, I am now getting tons of errors and can't login: Warning: ini_set() has been ...
0
votes
1answer
59 views

I am learning drupal7 and want to know the way to learn modules [closed]

I am learning drupal7. I have read the docs about modules. but still want to know the correct way to learn modules eg. how to use it, how to install extended modules etc.
0
votes
1answer
138 views

How to use the Drupal flashcard module?

I am not very familiar with Drupal modules. I am using Drupal 7, and installed the flashcard module. I enabled it, the flashcard-cycle module, and the libraries module; I also added the jquery ...
4
votes
3answers
614 views

Is Drupal following W3C standards?

I tested two of my sites in w3c validator. One site passed the test and other site gave me lot of error. Site2 was having the following doctype -//W3C//DTD HTML+RDFa 1.1//EN instead of HTML5. But ...
0
votes
0answers
44 views

Why is there not a Drupal Version of Drupal Answers (stackexchange) [duplicate]

Why has not someone create a site like this in Drupal CMS?
2
votes
1answer
604 views

Where can I find my front page in a localhost?

I just installed Drupal 7.2 on my localhost using xampp, made some pages, and installed a theme, I'm also modifying the CSS of the theme to my own convenience. My front page has (at the end of the ...
0
votes
3answers
1k 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
2answers
1k views

DRUPAL_ROOT undefined on module installation

I am tring to install the live_agent module. When I go to enable the module, I get the following errors: Notice: Use of undefined constant DRUPAL_ROOT - assumed 'DRUPAL_ROOT' in ...
0
votes
1answer
275 views

Drupal 7 module for mailman listserv?

From what I've seen the only mailman integration module is Mailman Manager which is only D6. Does anyone know of another module or any other tool that I could to do same functionality for D7, ie. ...
0
votes
3answers
147 views

Custom module not being recognised

I am trying to create a simple module by following the instructions in http://websmiths.co/blog/very-introduction-drupals-hookformalter. I've created the following two files along with the content in ...
0
votes
1answer
532 views

enabling “entity translation” disables term translation in Drupal (name and description)

i want to translate taxonomy terms and their description text. When i enable the module "entity-translation" and check "Taxnomie-terms" in admin/config/regional/entity_translation, the terms and ...
0
votes
1answer
113 views

how to call function by reference

i want to call uc_stock module by reference in my custom module. Actually i want to add and delete stocks. I have done this first using node_presave and it works successfully, here is the code: ...
-4
votes
1answer
77 views

Custom Module Variables How To [closed]

I am creating a custom module and I want to use a couple variables as counters, here is an example: $variable1 = 0; $variable2 = 0; function1(){ $variable1++; } function2(){ ...
-1
votes
2answers
396 views

What is the best way to handle post data in drupal? [closed]

What function I need to implement to handle simple post data when I submit a form?
2
votes
1answer
81 views

Undefined offset: 1 in gcm_action_send_message()

I am using Google Cloud Messaging for one of my projects. I think I have configured everything correctly. I am getting the following error when I tried to send some message. Notice: Undefined ...
0
votes
3answers
127 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
0answers
74 views

Module is deactivating itself

For some reason, when testing my module (displays a form), the module seems to "disable" itself. I reload the page, and the block isn't displayed anymore. If I go in the "Module" menu, my module is ...
0
votes
0answers
179 views

a pdf field open in a new window of drupal

i add a field which type is pdf, now i want to click the pdf file, then open in a new window.(target="_blank"). how to add target="_blank" to the a label.
1
vote
2answers
695 views

Alternate solution for Etherpad

I am using Etherpad collaborative tool, and I have installed the Etherpad Lite module. To install Etherpad, we have to use it using node.js, and run a shell script. I am using the shared hosting plan ...
0
votes
1answer
466 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
1answer
934 views

getting the profile2 user fields

i am writing a simple multistep form using ctools on drupal 7. Everything seems to work but i have a one last problem before i finish the task. How can i access the custom user fields (or fieldset i ...
3
votes
4answers
304 views

Safely enter PHP code in block to prevent site crash?

When I enter a php snippet into a block (or story or page), it can crash the site. Two questions: 1) How can the chances of this be reduced? For example, I just crashed a fresh installation because ...
0
votes
2answers
38 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; } ?> ...
3
votes
2answers
159 views

Can custom module function names contain characters between 7F and FF?

PHP defines valid function names as [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*. I have already been bitten by Drupal name conflicts when using hook_form_alter clashing with my module name when it ...
-3
votes
1answer
444 views

File upload broken on node form [closed]

I have the same problem described in I get image field upload errors with a custom node_add() form. How do I add these lines to the menu item array? 'file path' => drupal_get_path('module', ...
2
votes
1answer
607 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 == ...
0
votes
1answer
49 views

Can PHP pages be ported into Drupal “easily”?

If I have a php page, just a regular webpage that php retrieves database information from, dumps it out in tables, css, divs, all that. Is it extremely difficult to port to Drupal? I ask because if ...
1
vote
3answers
86 views

How can I quickly and surely tell if a site is a Drupal site or not?

For example, I put in the URL address bar somebodys-site.com/user or somebodys-site.com/user/password. If the site is an ordinal Drupal site it normally has the login page and password recovery page ...
1
vote
1answer
135 views

How to test a sandbox module

I found a sandbox module I want to test. How should I go about implementing it on my site?
-1
votes
2answers
408 views

Block Module jQuery Slider for Homepage

I have a simple jquery slider for the homepage of a website, which works in my static HTML/CSS layouts. I want to incorporate this front-end mark-up into a block module that will allow an admin to ...
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
45 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
831 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
340 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 ...