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
0answers
5 views

How to format and validate a form field as currency?

I'd like to see a code example of how to format a form field as currency (e.g. $1,000.00) in Drupal 7. I have the Drupal commerce module installed. Also, I'd like to see a code example of how to ...
0
votes
1answer
13 views

Show blog author info (related content)

I have two content types. Blog and Author. On Blog content type I have entity reference field (blog_author) where admin can find author of the blog (Author content type). Now I have a view that is ...
0
votes
0answers
10 views

Showing latest news article from taxonomy

I have News content type on my Drupal 7. With views I want to show latest news within specific taxonomy. So each News content type has taxonomy field where I can set news for example into "Cars" ...
0
votes
0answers
9 views

Show terms from multiple OG vocabularies in panels

I have a group "Cricket" with two vocabularies (Ground and GameType) attached via og_vocab field using the module OG Vocabulary. I have created a group content type "Match" where this field appears ...
0
votes
0answers
4 views

Problem with function from theme-settings.php in sub-theme

I want to create the sub-theme of my custom theme but I have the problem with the function from theme-settings.php. I have a few managed_file fields in my theme settings and my submit function for ...
0
votes
0answers
6 views

Views RSS Feeds: how can I change the order they appear in in the HTML?

I'm using Views 7.x-3.11. In my "frontpage" view, I have set up various RSS feeds, eg. one feed for the latest blog entries, one feed for the comments, one feed for the latest gallery images, etc. I ...
0
votes
1answer
18 views

Prepare Drupal to be multilingual in the future

I am building a Drupal website with only one language (Italian first) but there might be more languages in the future. This website will use also DrupalGap to create an app. Editors don't need backend ...
0
votes
1answer
15 views

Ajax Callback Function in Submit Button Doesnt Work

I have a submit button in my form and I want to implement it using ajax: function myid_user_page_form(){ drupal_add_library('system', 'drupal.ajax'); $form = array(); $form['id'] = ...
0
votes
0answers
7 views

How to get translated URL of node with Entity Translation

I've gone this similar question: How to get the path to the translated node? But I'm using Entity Translation and it does not work. I need this to send emails in Localized language in a cron ...
1
vote
1answer
8 views

Show node only to node author and author that is referenced by node

Is there a way to allow only a node author as well as an author referenced by a node reference field to view the node and comments. Example: A listing content type. (for posting want ads) An Offer ...
1
vote
1answer
18 views

using hook_form_FORM_ID_alter with #states

I am trying to use checkboxes to display inline entity form elements only when the boxes are checked. However, my code doesn't seem to be working. It will hide the element, but when I toggle the ...
0
votes
0answers
8 views

Automatically create and assign terms based on url

How can we automatically create and assign taxonomy terms based on the URL? For instance: /climate-change/statistics/new-zealand/polar-bear-maulings Existing terms: climate-change, statistics How ...
0
votes
2answers
23 views

Why doesn't the field table in the Drupal database use entity_id as a primary key?

I'm working on trying to optimize a View SQL query and I noticed that the query being executed is using a join on a the entity_id field of a field table. I noticed that for some reason unbeknownst to ...
0
votes
0answers
17 views

dpm()'d variable completely different from rendering/printing that variable immediately thereafter

This may be related to this issue which I'm also having. I have no idea what is going on. In trying to debug the above-linked issue, I'm having some bizarre issues with a renderable array in ...
0
votes
1answer
9 views

Changing date format in node template

I have a content type called news which I created a template for, node--news.tpl.php. In my template, I call the date field as follows: <?php print render($content['field_news_date']); ?> It ...
0
votes
0answers
11 views

Merge threaded comments from a few nodes into one node

On my website, I need to merge a few nodes into one (many times) and I'd like to also merge their comments without destroying threads. However, by simply changing the "nid" column in "comment" table, ...
0
votes
1answer
31 views

How to add Drupal Commerce into an existing Drupal site [on hold]

I wonder how to add Drupal Commerce into an existing Drupal installation. I've had problems with the documentation about this topic that I have looked at so far: A video about Adding Drupal ...
1
vote
1answer
13 views

Tree like structure in views d7

I have a content type in which i have following fields Title, year, and report type. i create a block using BEF for exposed report type. which is working fine Now i want to show results as - 2014 ...
0
votes
1answer
12 views

How to get the unread message count using EntityFieldQuery

Using below query I am getting the count of all messages of a user. Now i need to filter them to unread messages only. global $user; $query = new EntityFieldQuery(); $count = ...
0
votes
3answers
13 views

Show more fields under admin/people

when i go to admin/people section. it is showing me username, roles, etc. I want to show first_name, last_name as well. is there is any way to do this Thanks
3
votes
1answer
29 views

How to implement Page not found (404) for unpublished content?

On my site, some nodes are unpublished forever instead of being deleted. I'd like to return Page not found (404) for anonymous trying to access unpublished node pages instead of Access denied (403). ...
0
votes
0answers
12 views

One-off page template translation

Our client surprised us late when building their site, and once we already had content types and templates all configured (and basic content loaded), and required that we add localization to the site. ...
1
vote
0answers
8 views

Implementing a reply-by-email comment system that integrates with subscriptions

I'm trying to implement a reply-by-email flow on an existing site that will allow users to reply to comments made on the site directly from the email sent informing them of a new comment. The site ...
0
votes
0answers
9 views

fullcalendar is putting my events into the “all-day” category

I'm doing some stuff with fullcalendar and views that, more or less, is working. In particular, a month view properly shows a set of events on the day in which they're scheduled. However, when I ...
0
votes
1answer
23 views

Dislplay different fields depending on field value in node template

I have a field named field_event_type. When creating a node, you can select one of two options for this field from a drop-down list: birthday party Wedding I want to be able to display different ...
0
votes
0answers
14 views

I have problems with the coder

i just install the coder and when i run: drush drupalcs . in my module folder i got the next errors what i must do in order to avoid these errors?? PHP Warning: simplexml_load_file(): ...
0
votes
0answers
12 views

Prevent Space User uploading file

I am using Open Atrium. I have created a space. I have created a Files section. I would like any members of the space to be able to view the files. I only want space admin users to be able to upload ...
0
votes
0answers
10 views

Set menu active trail on a non existing menu link?

As the title says, it is possible? Thing is im using menu_block module to render different levels of a single menu but i want to maintain the active trail even so the url has change. Example: ...
1
vote
2answers
17 views

Active a menu <li> when the menu entry is a view page

I have a section (call news) that have an "home page". This home page is created via "views" and via "views" I have insert a link item into "main menu" menu based on path (/news). When I go to /news ...
0
votes
1answer
8 views

Generate match list from two different content type on price basis

I have two content type A & B in my application. The content type A have some attributes and a price attribute. The content type B have some other attribute and a price attribute. Now say A have ...
-1
votes
0answers
16 views

Get hooks list by a reading comment block in a module file [on hold]

I need to get hooks used in a module file by reading comment blocks in that module. for eg: /* * Implements hook_form_alter(). */ To achieve this I started doing something like this: $tokens ...
1
vote
0answers
10 views

Change the order of menus in sitemap page for visitors view

I have installed Sitemap module and enable some menus to display for HTML sitemap page. Now I need to change the order of titles (Menu) that are displaying on sitemap page. Is there any way we can ...
0
votes
0answers
10 views

How to enable Clean URL's in Drupal 7 running on Nginx server? [duplicate]

I would like to enable clean urls in drupal 7 running under nginx server. I have tried alot of suggestions from the internet, but none worked. Here is my /etc/nginx/sites-available/default code ...
0
votes
0answers
8 views

Can pathauto aliases be applied to taxonomy menu blocks?

I have got the taxonomy alias patterns working but for some reason my taxonomy menu block is not using them. Is there something I need to do/enable/kill/worship to get a taxonomy menu block to ...
0
votes
0answers
5 views

Move fields from a “field_collection_item” to a “#group_children”?

I use the field_group module and I want to display/move a (sub)field named "field_screenshot_image" from a field collection to a group "#group_children" named "group_gr_tab1". I can only move a field ...
0
votes
0answers
23 views

How to get fullcalendar month view showing event ranges that start before the current month?

I'm doing some stuff with fullcalendar that is basically working, with ajax, to show a collection of events in a month-view calendar. Everything is working, except for events that start outside the ...
0
votes
0answers
11 views

7 - Theme settings default value for file upload?

I have a file upload field in my theme settings form... like this: $form['logo_2'] = array( '#type' => 'managed_file', '#required' => FALSE, '#upload_location' => ...
0
votes
2answers
22 views

Print Link field in View template

I have a 'Link' field that is entered in plain text by user. I am trying to display the raw value of this field in my views template. I did dsm($fields); in the views template. For the field, the raw ...
0
votes
4answers
32 views

Is there a way to determine what is powering the content behind a URL?

I have a relative URL in a large site that I inherited: /my-url. For the life of me I can't find the View, Module, or other content that shows how to edit this URL. I've grepped the code base, and ...
0
votes
2answers
18 views

Views block showing empty content on front end

I created a view to show a list of news items. I placed the view block in the content bottom region of the page. In the Views preview, it shows the results. However in the front end, the content is ...
0
votes
1answer
18 views

Drupal 7 Ckeditor cannot edit profiles (picture added)

Recently I must have done something that changed something with my ckeditor. I can no longer edit my profiles. The strange thing is that I have multisite setup and only 3 sites are affected. The 3 ...
2
votes
1answer
23 views

How to edit Calendar title

Module: https://www.drupal.org/project/calendar I wan to remove Saturday. Only display August 1, 2015. How to set? Thank you.
0
votes
0answers
17 views

file path/url in file entity tpl

I have a tpl file for file entities of type image: file--image.tpl.php. In this file I use $file_url to get the url of the file. But I'm not sure if this is correct. This Drupal installation we have ...
1
vote
3answers
23 views

Password request redirect to another page

I click on forgot password page it redirect me to http://example.com/user/password which is fine now when i enter email id . it redirect me to "http//example.com/user */. I want it to redirect ...
1
vote
1answer
24 views

Reset Password in drupal 7 [on hold]

I want following functionality when user click on forgot password. I want user will get an email to rest his password. when he click the link, A new password wil generated and send into his email ...
0
votes
0answers
26 views

Unwanted markup for modules [on hold]

I am using the Social Media Link Block module for social icons, but it also includes default and unwanted markup. How can I remove this?
0
votes
1answer
28 views

Kick Out Form builder module

I have install Form Builder module and Webform module. Webform module: Create form feature Form Builder: Integrate into webform for more friendly user by click and drag Recently I realize form ...
0
votes
2answers
37 views

Reloading option in a select list with ajax

So here is my problem: I have a form so users can create orders. There is a 'Client' select list where they can select the client of the order. When we select a client, we use ajax to load client ...
0
votes
2answers
25 views

How to print image url in foreach

I successfully print the image url for a individual images by the following: $file = file_load($node->field_hp_slideshow_image['und'][0]['fid']); print ...
0
votes
1answer
29 views

Change field input type on node edit form

I'm looking to change the input field widget on my form, but still accept the same value at the end of it. I have an integer field, and I only want them to be able to select certain integers which ...