This tag is for questions regarding Drupal 7 specifically. Version tags should be used only when strictly necessary, for questions that apply to Drupal 7 only, and not to merely say "I am using Drupal 7 in my site."

learn more… | top users | synonyms (1)

0
votes
1answer
5 views

REQUEST_TIME is in GMT eventhough site timezone is IST

In admin/config/regional/settings I can see that IST timezone is set. But when I print REQUEST_TIME constant I see GMT one. How to get the IST time in REQUEST_TIME ?
-2
votes
0answers
21 views

hi. i have question need help

I would like to say as follows. I have one vocabulary term including the following: - laptop --laptop dell --laptop hp --laptop asus - Server --Intel server --Ibm server --intel server I want ...
0
votes
0answers
7 views

Why there are random line breaks in emails sent through drupal?

I noticed drupal includes line breaks in emails it outputs. For example in admin/config/people/accounts we can customize message users receive when they signup and/or when they forget their passwords ...
0
votes
0answers
11 views

Dymanic form with ajax

I looked at ajax_example_add_more and I cannot understand what's wrong with my code. It doesn't add another field set. my code: function my_module_form($form, &$form_state) { $form = ...
0
votes
0answers
3 views

Is using views to display information of one contenttype combined with user info bad practice?

On a Drupal 7 website I have a content type for which I would like to create a page that also contains user specific information. It is not a collection of data it is just like a content type display ...
0
votes
0answers
2 views

Use of [node:field_XXX] in Custom Breadcrumb?

I am trying to create the breadcrumb for a content-type in Drupal 7, using Custom Braedcrumb module with Token module. There is a taxonomy field [field_category_mypath] defined in the content-type ...
-3
votes
1answer
30 views

How to I find all the drupal sites on my server and see if they have been patched with the new SA Exploit as of OCT 15, 2014? [on hold]

I have a server with a bunch of drupal sites all over the place. How can I find all the drupal sites that have not been patched yet? And once It's found how can I auto patch it via the command line? ...
0
votes
0answers
7 views

Defining email headers

First of all what header information can we fill in? Which are filled out automatically by drupals mail function and what does each and every piece of header information do? I really would like to ...
0
votes
0answers
10 views

Generating fields programmatically for a page

I currently have two content types, one content type has a field which is a list of nodes of the other content type. I am using entity reference modules for this. I have a custom module that pulls in ...
0
votes
0answers
17 views

What is wrong with this drupal 7 preprocess function to output a fields value into the body classes?

I have the following preprocess function and was wondering what I have wrong here as its not working. This is just to grab a fields value and insert it into the body classes. /** * Implements ...
3
votes
0answers
22 views
+100

Separate domain for specific content type

I haven't worked with multi-domain setups in the past so I did some research regarding the options for altering my website to accommodate for specific multi-domain needs. My immediate need is to have ...
0
votes
1answer
15 views

Webform + Translations

I have a website where 80% of it are webforms. Admins can create webforms themselves and registered users can fill them in. ( A PDF will be created etc etc...). Now I have to make this website in 3 ...
0
votes
1answer
20 views

view contents flagged by other users

I would like to make a view to select the contents flagged by a list of users. I tried this: https://www.drupal.org/node/1191228 but it works only for one user at time. I would need that for ...
0
votes
2answers
32 views

Block restriction

I have content with URLs in the following pattern: http://example.com/subdirectory/working-site/major-event-2/event/4580/speakers There is a Views generated Block which I am trying to restrict ...
0
votes
1answer
31 views

Drupal Error : The website encountered an unexpected error. Please try again later

I made a site locally and when I uploaded it to the hosting server, it worked fine except when I went to edit some content type. It showed this error: The website encountered an unexpected error. ...
3
votes
1answer
73 views

Drupal SA-CORE-2014-005 - How to tell if my server / sites were comprimised?

I just updated all my sites using the patch method of resolving the Drupal SA-CORE-2014-005 exploit. I just read reports that just yesterday there is someone from a Russian IP infiltrating drupal ...
0
votes
0answers
4 views

Is there a stable way to fill a filefield/imagefield via bulk upload in D7

OK, here's the deal. I've implemented image gallery nodes in D7 the straight-forward way, i.e. create node type 'gallery' and add an imagefield with unbounded number of values. Nice markup via ...
0
votes
1answer
11 views

How to hide header and footer from 404 page?

I create a 404 page on D7 site ( ie. mysite.com/404), which is a Basic Page. I am trying to hide the header and footer from this page. The header and footer are blocks, and they are placed in every ...
0
votes
1answer
12 views

Change View Mode on Taxonomy Tag Pages

I have a field that is linked to a taxonomy vocab called tags when creating my "Article" content. When I show these tags on the node page, it links to: /tags/ I can't seem to find where I can change ...
-1
votes
1answer
20 views

Easiest way to add color to a title field?

I have 2 fields, one is an image and the other is just a title. Now the title hovers above the image, but the problem here is that the image might clash with the font color. If the image is ...
0
votes
3answers
30 views

How to retrieve node body from nid with an SQL query in Drupal 7?

From this question I learned that I have to look in field_data_body to retrieve the body of a node from a database. field_data_body does not have an nid field though. What query can I use to ...
0
votes
1answer
15 views

Large file uploads stop immediately, 404 error

I am having a weird problem with uploading large files in the Drupal admin's file field. I have the size limit set to 500 MB. I also have the php.ini settings for upload size, post size, and memory ...
0
votes
1answer
19 views

How to define an intermediate admin user as the default install profile on fresh drupal 7?

When generating a new drupal site (multisite), I would like to define the default user profile as an admin user without acces to administration menu. How can I create this new user as an install ...
0
votes
1answer
22 views

How to set different logout times for roles?

I would like to define/set a log out time for different roles for my Drupal site. Say for example if I set log out time for X role for 30 Minutes. The users under that role would be logged out in 30 ...
-1
votes
0answers
16 views

tabledrag.js multivalue fields reversed ordering

Iam experiencing a problem with multivalue fields on node edit page. After some time of developing my site I have noticed that all multivalued fields are displayed in reversed order (before - the ...
-1
votes
0answers
15 views

When user is assigned to Organic Group, I need to get the value of a field on the Group node

I have three Content Types - Course, Course Group and Learner Form. The Course Group node is an Organic Group and has a reference to a Course node with field_course. When a user is added to a Course ...
0
votes
4answers
17 views

Main menu links Permissions for drupal 7

I am showing menu items, now i want to show some links to Anonymous user only and some links to Authenticate user. It it possible to accomplish this in Drupal 7 If yes, please explain. Thanks
0
votes
1answer
25 views

Show whole taxonomy tree starting from current term

I'm trying to show taxonomy tree starting from current term. Like this when you are in taxonomy term1 page. -term1 (this is the term1 page where we are now) --term2 --term3 ---term4 ...
0
votes
0answers
26 views

help! i want to hidden article

I have a problem in need of help. when I create one content type product (in this content type I added 1 term reference field to select the product category that I have made ​​available in the ...
0
votes
1answer
16 views

Modal Popup for Vimeo when clicking on Vimeo Thumbnail Link

I have a basic link field and in this link field I just have a vimeo/youtube link. What are some of the available modules that can give the functionality of: Render the display of the video link ...
1
vote
0answers
28 views
+50

Change mailsystem used on webforms on a per email basis

I'm using the mailsystem module to send webform notification emails using mandrill. However, for some of our webforms we need to use mandrill for the notification email sent to the users, but send ...
0
votes
0answers
15 views

How to programmatically toggle webform required field

Using webform4, how to programmatically toggle the required option based on another condition? I have done jQuery('#edit-submitted-fld4-rgistered-with').removeClass('required'); but it seems the ...
0
votes
2answers
17 views

Drupal 7 Multiple Display Types Different Options?

I have one view with two display types (two blocks), for one of them I want to limit it to 1 result, for the other I want it to show all the results. How can I do this? I can't seem to figure out how ...
2
votes
2answers
29 views

Do I need to use drupal_mail after the hook_form_contact_site_form_alter?

I have added on field in my site wide contact form through this code : function cstm_form_contact_site_form_alter(&$form, &$form_state, $form_id) { // Add a phone number field to the ...
0
votes
0answers
14 views

Theme settings logo upload file field: how to apply a max file size validation? [on hold]

I want to apply a max file size validation to the upload logo field in appearance/settings/my_theme So I thought using hook_form_alter would have sort it out: function ...
0
votes
1answer
20 views

Views 3.8 hook_views_default_views() stopped working

I have a default view made using the views hook hook_views_default_views(). It was working right and when I updated to Views 7.x-3.8 it stopped working. It is not shown in structure -> views, the ...
0
votes
1answer
24 views

Show all child terms in user page

I have field in taxonomy term field_user which references to User. At user own page (for example: user/1) I need to show taxonomy tree like this: -user1 (this is the user whose page we are) --user2 ...
1
vote
1answer
27 views

advagg drupal module breaking my js file

I am using advagg module to improve my website performance and I also using date picker jquery UI function for date functionality. I have datePicker intialization $( "#datepicker" ).datepicker(); . ...
0
votes
0answers
13 views

Custom module for Webform Node Reference in Drupal 7

I have created a custom module for getting Node Reference in webform field. .info file name = Webform Node Reference description = "NodeReference for webform." package = "Webform" dependencies[] ...
0
votes
2answers
23 views

Uninstalling the module from drupal-7

I had installed module Commerce and it was giving me error whenever I try to display product.Then I went through forums to find out solution. And reason mentioned in forum was commerce module might ...
1
vote
2answers
20 views

client side validation

I am new to Drupal. I am trying to enable client side validation on my web forms. I installed & enabled the modules as per the Drupal.org link: https://www.drupal.org/node/1324924 & then went ...
0
votes
1answer
17 views

Remove link from active page in menu

I need the active page in my menu not to be a link. So let's say I'm on the services page, I need my menu structure to look like this: <ul class="menu"> <li class="first leaf"><a ...
0
votes
0answers
18 views

translate php date?

Im my view I use last-access field for users. I use custom date format (only d) The resulot is for example 1 day 14 hours. Question: how to translate it to different language? I am not using any ...
0
votes
0answers
8 views

Custom formatter for a multi-valued field

I have a multi-valued image field and I'd like to use its delta value with the Custom Formatters module. What I want to do would be really simple with html+tokens if it were to work: <div ...
0
votes
1answer
8 views

Missing Logo block on a fresh build of Drupal 7 using Omega 3.x theme

I just did a fresh install of Drupal 7 and I'm currently made a sub-theme with omega 3.x and for some reason the blocks page is missing the logo block. I tried also uploading a logo image on the ...
0
votes
1answer
8 views

logintoboggon and user registration password to allow users register with password and email verification at the same time

Im using logintoboggon module to enrich account functionalities, in its settings there is a field "set password", if not checked anonymos users can't choose their passwords in registration form and by ...
-2
votes
0answers
26 views

Bootstrap / Jquery vs. Drupal [closed]

Anyone who has a good solution for the following problem? I am using Bootstrap and Drupal 7, so things like tabs.js (part of bootstrap), are using the $-sign for jQuery. But as it seems drupal does ...
2
votes
2answers
63 views

How to rebuild registry table?

I've truncated registry table, because of the other problems, but now I have problem rebuilding the registry table based on the files listed in the database. I'm calling registry_update(), ...
0
votes
1answer
26 views

“File (Field) Paths” and “Media” modules: files not saved in the intended folder

I'm trying to use both the "Media" module (1.4) (to manage uploaded files) and the "File (Field) Paths" (to keep the uploaded files organized in various subfolders). Basically, I have a content type ...
0
votes
0answers
17 views

Custom widget for field collection with multiple values

I need to create a custom field widget for a field collection. My field collection is called Article and has the fields "Title", "Summary" and "Description". My content type has the field of type ...