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)

-4
votes
2answers
14 views

How to display list of nodes in responsive grid?

What module should I use to implement this? Each item has photo, taxonomy, title, description. And it has a horizontal mouse hover movement. Could you kindly recommend drupal modules to implement ...
0
votes
0answers
25 views

hook_menu stopped updating the menu system on rebuild [on hold]

For some reason hook_menu has stopped updating the menu for any singular input tried. I can't really see any particular reason why it is not presently working. We've put a watchdog function inside, ...
5
votes
1answer
81 views

Why are comments not a node content type?

So Drupal has a 'special' commenting system. Comments are second-class citizens in Drupal compared to nodes... But why did the core team not just create a default Content Type, Block and View ...
0
votes
1answer
23 views

Job for create/import data from csv

I need to import a large amount of contents of a CSV file. The file is a bit complex and still have a folder with a lot of images that are associated with each line of the csv. As the file is complex ...
0
votes
0answers
14 views

user edit page on quick tab crashes when uploading images

I'm using quicktabs and in one of the tabs I'm using a callback the callback is the client profile2 edit page user/%1/edit/client The form is correctly rendered but it crashes when I try to upload ...
0
votes
1answer
6 views

Is Drupal internationalization development effort embracing the new “Entity Translation” method? Is it ready for use?

I'm working on standing up a new Drupal 7 site that will have content in multiple versions, and as I'm reviewing the i18n module, I see that there are now two methods for translating content: "Content ...
0
votes
0answers
10 views

Notice: Undefined offset: 0 en CurrentSearchItemActive->execute() Commerce kickstart bug

I do not know what happened I get a lot of errors when I search something using the search bar of commerce kickstart and then use one of the facet filters in the sidebar Please check this image of ...
0
votes
1answer
25 views

How to insert user registration data to non-drupal table

I installed drupal 7.34 with oracle database. Now i need to save user registration data to another non-drupal table. User authentication also need to do with these non-drupal database field. Is there ...
0
votes
1answer
16 views

How do I create a summary that is grouped by years first and then months in Views using contextual filters?

Instead of the default formatted result of «Created year + month»: - Diciembre 2014 (12) - Noviembre 2014 (20) - Octubre 2014 (23) - ... - Diciembre 2013 (13) - Noviembre 2013 (34) I ...
1
vote
0answers
9 views

Commerce multi-select membership donation form

Something like this using Drupal Commerce? You select from a select list multiple options of which everyone has a price right? And so it adds it as a total below in a field like a cart, but in a same ...
0
votes
0answers
17 views

Override automatically called FORM_NAME_submit function [on hold]

I'm using the commerce_cart_add_to_cart_form form in a custom module. I simply need the same form to be rendered and then use it in my purposes. However, I cannot attach submit handlers to that form, ...
0
votes
0answers
22 views

How to edit Services json response of successful register.json

How can you edit the Services' json response of successful register.json to include the user's OR system's auto-generated password, plus any token? I've tried a variety of combinations of the ...
2
votes
0answers
23 views

Some fields are not sorting properly in view

I'm trying to create a directory list in view. But some of the fields are not properly sorting. See the below image for my view configuration. And the output of the view. Update: Style setting ...
4
votes
0answers
30 views

Services' register.json does not login the user or return the user's session/token/password

I have tried far too many variations to list here, but the basic point is I cannot get the user logged in immediately after registration via Services. I have tried a fresh Drupal 7.33 install with ...
0
votes
1answer
19 views

Issue using Exposed filters along with contextual filters in views

I have a view page listing my stories/articles. I have a contextual filter based on the field Country which is a taxonomy term reference field. I have defined the path of the page as article-search/% ...
3
votes
1answer
85 views

Where should I be storing custom node-related data?

There are several types of data my website generates for every node. Node's popularity score, node's comment count obtained from a 3rd party API, etc... This data is set for every node. In the past ...
0
votes
1answer
22 views

How to replace metatag description using views argument?

I'm having trouble while trying to use views arguments for replacing metatags description. In the view title you can easily add the view argument for example "Blog posts in category %1" so the "%1" ...
0
votes
1answer
14 views

Translate website with prefix URL when everything is on domain

The website I'm working on has multiple languages and the detection is based on domain name. I want to add another language, available only to developers, but do not have a domain name for it now. So ...
0
votes
2answers
25 views

Problem in views UI part in admin panel

I have implemented the views in my project, in this views are looking fine. But after I install jQuery Update module views are changed. Now views are looking like following : Error it showing : ...
0
votes
0answers
8 views

SSL errors on Heroku (Mixed contents)

I have an app via Drupal 7 on Heroku. You know, myapp.herokuapp.com is default with SSL. But when I try https://myapp.herokuapp.com get many errors in console like this: Mixed Content: The page at ...
0
votes
1answer
18 views

Running code only once when building a form

I have built a form using the field API. The function hook_field_widget_form gets called for every field. I have a bit of code that populates a select box but it is being called for every field in the ...
0
votes
0answers
3 views

Customizing the search results page with Apache Solr

I have business requirements to do a total overhaul of the Search Results page for our site. Based on the searching i've done so far, I have a few options to adjust the results pulled by the search: ...
0
votes
0answers
7 views

Show 404 page for node without translation

I'm using entity translation and I need to show 404 page for a node if it hasn't got a translation available for current language. For example, the site runs EN, DE, FR, ES languages. Node 100 is ...
0
votes
1answer
26 views

How to programmatically hide field from display?

I want to reproduce programmatically hiding of a field that can be obtain by Manage Display -> Format -> (hidden) URL: admin/config/people/accounts/fields. Field I want to hide is added by OG ...
0
votes
1answer
17 views

how to clean up the markup of output

I'd like to change the output from the field formatter view from the Field API. I'd like a cleaner markup without unnecessary tags. What's the best way to clean up field formatter view output? Many ...
0
votes
0answers
16 views

Calendar - “It happened today” type

I have a database of persons with birth/death times (Year-Month-day) and biographical data, and I want to make a Calendar View that lists the birth/death events that happened on some specifical day. ...
1
vote
1answer
13 views

When hook_field_info_alter is invoked?

I am trying drush cc all, but no luck. https://api.drupal.org/api/drupal/modules!field!field.api.php/function/hook_field_info_alter/7 I need to programmatically hide a field and thinks that this is ...
0
votes
0answers
14 views

Field groups not showing when nested using field type HTML

I'm using Drupal 7.34, Profile2 module, Field groups 7.x-1.4. When building a form with nested field groups and using the fieldset field type, my form renders properly. When I configure my form like ...
3
votes
1answer
229 views

How to use Tamil language in my website?

I have installed the language selection page module. I have Tamil, English language to be chosen by users. If user chooses English means site will appear in English Language. If user chooses Tamil ...
0
votes
1answer
17 views

Views sorting a custom field

I've added a custom field to my view using hook_views_data: /** * Implements hook_views_data(). */ function homepage_views_data() { $data['homepage']['table']['group'] = t('Recency field'); ...
0
votes
1answer
27 views

How to soley wrap the <input>-field in a custom <div>-wrapper in Webform 4.x?

I've a fairly simple question. Due to a given CSS I need to wrap the <input>-field (as well as <select> or <textarea>) of webform-component with a custom <div>-wrapper. Change ...
0
votes
2answers
17 views

How to get a list of all javascript files in a directory

Is it possible to get a list of all the javascript files in the libraries directory? So far I have tried using files_scan directory but it's not returning anything: $dir = base_path() . ...
2
votes
0answers
23 views
+50

Sending client to channel messages with nodejs integration

I've been struggling with this for some weeks now and so far I have not found a proper solution yet. I guess this is a bug, but since there is no response on nodejs issue queue I'd like to ask this ...
0
votes
2answers
22 views

Safety of letting user define javascript paths in fields

I have a module that uses the Fields API to insert a HTML5 canvas element and allows users to define paths to user scripts to be loaded with the page: The scripts are relative to a hard-coded path ...
2
votes
1answer
38 views

How to customize pager

I have a code, that outputs a standard pager: print theme('pager'); it outputs this: <h2 class="element-invisible">Pages</h2> <div class="item-list"> <ul ...
0
votes
1answer
20 views

How can I redirect a user after adding a node that also added a new taxonomy term?

I have a content type with a Taxonomy for locations, these locations can be placed inside parent locations (f.ex United Kingdom -> England -> London), and it is set-up such that the end user can add ...
-1
votes
0answers
19 views

integrating drupal chatroom with organic group [on hold]

Hello everyone have been trying to get this done on drupal 7. Does anyone has a clear cut tutorial or any explaination that can help. I will appreciate if you can help. What i want is to confine group ...
3
votes
1answer
31 views

How to pass Javascript variable with form on submit?

I want to pass a variable created with Javascript to $form_state so that I can use this variable in the form_submit function. In an ajaxified form I can use: ...
0
votes
0answers
17 views

Design Pattern/Architecture Implemented in Drupal 7 [duplicate]

I have created a small site using Drupal 7 and uses its extended module functionality. My site contains several custom module which contain files like .info,.module,*.js etc. There are numerous custom ...
0
votes
0answers
25 views

Sending information from JS to Module File

In one of my webpage I print one button multiple times and all have different logId. I want that when user click then there will JQuery into the picture and there should be no server side post-back. ...
0
votes
1answer
11 views

How to use Sort By desc by default with toggle link enabled?

I am using better exposed filter and added toggle link sorting for a field. But the toggle link sort Asc order on first click. I want to make it Sort Desc on first click. I tried to write : ...
0
votes
0answers
19 views

Render webform submissions in template

I want to render webform submitted data below the form on every page from a specific content-type. But not all fields are allowed for everyone to see like a phone number, views could solve that but ...
0
votes
0answers
8 views

View of related content using contextual filter by taxonomy term in menu tab

I've got a view with a block of related content by taxonomy term. It works great. When I look at a node, I can see related content in the block. I'd also like to have a display that shows the view in ...
0
votes
1answer
6 views

Eliminate Views Entity Reference Duplicates. I have some titles the same on purpose

I have a view with an entity reference pulling in what I need from a content type. There are, on purpose, titles that are the same. Is there a way to compare what is output and then only show one of ...
0
votes
1answer
6 views

user_load() and EntityFieldQuery not found when running script via Drush

I'm trying to run a php script from the command line via Drush. When I tried to use EntityFieldQuery... $query = new EntityFieldQuery; I got the error: PHP Fatal error: Class 'EntityFieldQuery' ...
0
votes
3answers
47 views

Cannot apply custom CSS via theme settings

With Drupal 7.x and the Whitejazz theme, I want to apply custom CSS styles to some elements. This theme has the option to include custom CSS styles by specifying the path to the CSS file (in ...
0
votes
1answer
32 views

Search bar in main menu

I would like to place the search bar in the main menu on the right. I have seen several people on the net asking for this but never encountered some information I could actually use. I use Drupal 7 ...
1
vote
1answer
21 views

How to create widget element with unlimited values?

I have a widget for a field as shown below: I would like to make the text field ('script_paths') an unlimited value so that the user can add as many as they like. Is there a way to do this? Maybe ...
-4
votes
1answer
32 views

Change drupalsite/user to drupalsite/customadmin

Currently to login as an admin I need to navigate to http://drupal.mysite.com/user and then I am logging in as admin. I want to change user to my own custom name customadmin so that when I can ...
0
votes
0answers
17 views

Weird node edit form behavior with feeds imported nodes

got a weird situation going on. I imported a bunch of nodes from a csv file using the feeds module to a particular content type. This conent type have different type of field like address field, ...