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)

2
votes
2answers
13 views

Why does external js only appear in header? D7, in a block, via custom module

I'm trying to add a box.com file upload widget to certain pages in a block. The upload widget is an external js script. I'm adding it via a custom module, using hook_block_view, switch ($delta) { ...
0
votes
3answers
27 views

Which other 'things' to learn for/with Drupal?

Sometimes I'm asked how to learn Drupal, where to start. "Which other things do I need to learn for/with Drupal?" These questions are coming from newbies of web design/development. I advise ...
-2
votes
0answers
20 views

How to use computed field?

My scenario: Node Title: ABC field_1 : hello field_2 : !!! field_1 + node title + field_2 = hello ABC !!! $entity_field[0]['value'] = $entity->field_1[0]['value']; $entity_field[0]['value'] ...
0
votes
0answers
8 views

MYSQL crashes on XAMPP while working with drupal [on hold]

Good day, just today morning i was using drupal to add some content, it crashed and mysql shutdown unexpectedly at xampp!! last thing i was doing was inserting a data into a field with "auto complete ...
0
votes
0answers
19 views

add webform field values to mysql dynamically without submit

I need to be able to save webform fields to a mysql table whenever a user fills one field and moves to another one to continue filling. Everytime he/she changes to a new field, the previous field ...
1
vote
0answers
12 views

How to use long/lat OR full address in Google Store Locator module?

I wonder if there's a way to use EITHER long/lat OR full address for store content type in the Google Store Locator module. Has anyone done something along those lines?
0
votes
0answers
23 views

Is it bad to have too many menus added with hook_menu?

I am working on a system where almost everything needs to be working with ajax. Most of the sections are built with ajax and then data is appended to respective sections and so with the forms, all of ...
0
votes
1answer
16 views

Custom search results

I am using drupal 7 built in search module. In my custom content type, I have multiple products for Industrial,mechanics and sports categories. I need to apply search restriction on some products for ...
1
vote
1answer
22 views

Make Wysiwyg Use CKEditor CDN

Is it possible to make the Wysiwyg module use the CKEditor's CDN for delivering the editor to the browser client?
0
votes
2answers
27 views

How to show fid with slideshow image

I have very specific requirement. I want to show images in slideshow. I have created content type "User Slideshow Snaps" and two fields Slideshow Snaps Node Id I want to show slieshow of images ...
0
votes
1answer
26 views

Show only comment textarea, if entered something show required fields for anonymous user

I want to make commenting easy for anonymous users. "Anonymous posters must leave their contact information." is enabled. What I want to do is to show only the comment text field at first and if the ...
1
vote
1answer
21 views

Move content from field to field collection

I'm working on a site where a current content type has six image fields, six title fields & six content fields. One field from each (one image, one title & one content) all make up one group, ...
1
vote
1answer
15 views

“add content” suddenly not showing on navigation block anymore

Good day, I'm having a problem of a block not showing its content! the block is stock and called navigation, which has "add content" in its links. but just recently, it has not been working on other ...
1
vote
1answer
10 views

How to display a percentage for a pie chart label using the Charts module?

I'm using the Views integration of the Charts module, with HighCharts as the charting engine. I want to create pie chart, in which I want to also get the percentage displayed when I hoover over any ...
1
vote
1answer
38 views

pass argument as a wildcard to node/add/Custom type/

Case : I do have a coupon share content type , it does contain a node reference to type "Coupon" , now this is my scenario : user selects a node of type coupon he redirects to node/add/coupon ...
0
votes
2answers
29 views

What is the order of execution and redering of hooks and page components? [on hold]

In order to have a better understanding of what Drupal does, I need to find out what the order of execution of hooks and page components is. A page layout in Drupal consists of HTML, regions, nodes, ...
2
votes
1answer
38 views

why is admin not bypassing restrictions at views?

I have a problem of admin not having full access to content nodes. I wanted to create a view so that a user can see nodes he created and cannot see other users' nodes. However, 'admin' should be able ...
0
votes
1answer
13 views

Automated database history save and recovery Drupal 7

I have a site implemented in Drupal 7. I want to make a history database recovery tool, which will recover previously recorded MySQL data. I have tested correctly on non-Drupal content which is used ...
1
vote
1answer
29 views

Display comment box to the author of the node being referenced using panels

I am creating a project that needs ONLY the author of a node being referenced AND the author of the referencing node to participate on comments on the referencing node, a sort of customer support ...
0
votes
0answers
12 views

how to have admin settings form and add content form? [on hold]

I am new to Drupal, i create custom module. content form is created and working fine, but now i need to have the second form which is Settings form, the menu Hook is setup and my module appears in the ...
0
votes
1answer
24 views

Ajax Callback Function Not Working in A Button

I have one select element, that calls an ajax callback function when it's value changes: $form['myid_template']['template_options'] = array( '#type' => 'select', '#options' => ...
3
votes
1answer
20 views

Multiple template pages when creating new pages

new to Drupal 7. I can kind of get the result I want through "hacky" methods but was wondering what best practice was. I am creating a drupal 7 bootstrap subtheme. The main content area of the site ...
0
votes
1answer
8 views

Why can't I see the settings for the customfilter module in the Drupal admin?

I'm following this tutorial to add a custom filter using the Custom Filter module. I've installed and enabled the module. However, when I try to navigate to /admin/settings/filters like it suggests, ...
2
votes
3answers
55 views
+50

Best practice to manage multiple Drupal sites (updates etc)?

I'm managing several (~20) Drupal sites and it's a bit hard to keep all the sites updated. If there is a report page that monitors all the Drupal sites you manage and shows the core and module ...
0
votes
0answers
11 views

Hide views title overriden by contextual filter settings

We have a page built using panels. Its URL is of the form 'news/!year/!month', to have URLs like 'news/2015/06'. Main content pane is a view showing list of news articles filtered by the creation ...
0
votes
1answer
16 views

How can I create a custom html tag in the CKeditor wysiwyg editor?

I've created a custom HTML tag that pulls information from my database and displays it. Basically it uses preg_match_all to parse the body of articles for <profiletag>Person ...
0
votes
2answers
31 views

Add class to field collection wrapper

I've got a field collection with has a div wrapper with the classes "field-collection-container clearfix" I'd like to add an additional class to this div. How would I go about this? I've tried this: ...
0
votes
0answers
14 views

Change URL when change language on click language switcher

I have Four Different languages Chinese,Portguese,Spanish and English. My Question is Portguese,Spanish and English same url (example.com) and when user change /click on chinese language icon, change ...
-2
votes
0answers
10 views

webform api + dynamic dropdown + save to db [on hold]

I have a list of 5 dropdowns in my custom module using webform api, and would like to be able to save these values (1 per row) to my custom table in phpmyadmin. What is the code to do so?
0
votes
2answers
24 views

Captcha module configuration

I am using captcha module on my user registration form, I need to alter the error message for this from What code is in the image? field is required. to My custom text. is there any hook to alter this ...
0
votes
1answer
31 views

How do I create a add and a edit feature for a content types

I must be missing something fundamental for the life of me, I cannot find the answer. I have a content type 'person', one field of which has a entity reference to a content type 'address' I would ...
0
votes
0answers
18 views

Sending files on submit in drupal 7 [on hold]

Email is successfully send but without any attachment, I need to receive email with attached file. function mymodule_mail($key, &$message, $params) { $headers = array( 'MIME-Version' => ...
0
votes
1answer
20 views

Edit message when new user created

In configuration>Account settings page, at the bottom of page under E-mails first option Welcome(new user created by administrator), here I want to edit the body section and need to include link for ...
0
votes
1answer
19 views

How to show different view templates for different taxonomy terms? [duplicate]

I'm using Drupal 7, and I had a vocabulary "Destinations". Under this vocabulary, I had terms with 2 levels. For example: ASEAN -- Brunei -- Indonesia -- Laos EUROPE -- Spain -- Greence -- Portugal ...
1
vote
0answers
10 views

Difference between views-to-content-type attaching modules

For D7, there are a number of good options for attaching a view to a node, including EVA Viewfield View reference Is EVA a superset of the functionality of the other options? What exactly is the ...
0
votes
0answers
7 views

Using Domain Access produces HTTP code 500

I was having a 500 error when going to subdomain. I looked at this thread, Drupal 7 Domain Access Module Gives 500 error, WSOD for subdomains, and managed to get rid of the 500 errors by editing my ...
0
votes
0answers
14 views

How to call JS functions inside ubercart hooks? [closed]

drupal_add_js and ctools are not able to generate the desired result. I am looking to call JS function for analytics in hook_uc_cart_item_update() function in Drupal 7. I need to add a call to a JS ...
0
votes
0answers
12 views

Submit form and display confirmation page in CTools modal

I've been all around this issue, but haven't found the right magic to make this work. I have a Drupal 7 custom form that collects information from a user, which gets validated before submitting, that ...
0
votes
0answers
17 views

Alter the result of a view with regrouping, supplementing original values

I tried to create a similar question before but it was unclear, hopefully I can narrow it a little bit: So I'd like to create an authors-article webpage, such as: ...
0
votes
0answers
20 views

Help sending specific fields' values to external url from Drupal webform

I have the following codes in webform remote post module, but instead of sending the whole webform fields as it is being done in the module, I need to send data from the fields only present in a ...
-1
votes
0answers
23 views

Using array values in db_query Drupal webform [closed]

Am working with the webform_submission_insert($node, $submission) hook, and have the following code: $nodeID = $node->webform['nid']; $mapFields = db_query("SELECT MapFields from CustomWF where ...
0
votes
0answers
20 views

how to update cart without refresh page in drupal 7?

I am using Ubercart module for products in Drupal 7. When I click on 'add to cart' button my cart is not updating. After page refresh cart showing product means update. I am using this code : ...
1
vote
1answer
20 views

How to implement a horizontal set of translation links for every node?

I want to add a hardcoded translation block to my page.tpl.php, to link to a translated version of every node + a translated interface. The Language Switcher Dropdown module did the trick, but I want ...
0
votes
2answers
58 views

how to view data row table related to user only?

Good day, I need to create a view, which only shows data related to the user logged in user. when i have a user called "john smith", i create a contents as i like, BUT i don't want other users to see ...
0
votes
1answer
26 views

How to modify field group markup?

field_group.module defines a function as follows: function field_group_pre_render_accordion_item(&$element, $group, &$form) { $element += array( '#type' => 'markup', '#prefix' ...
3
votes
0answers
22 views

Conditional fields not working with hierarchical select module

Case: I am using the Hierarchical Select module for allowing users to choose taxonomy terms from a particular vocabulary. Based on the chosen terms (deepest level), I want to display a field using the ...
0
votes
0answers
13 views

drupal retrieve csv field values from sql table to post to url for webform

I have a scenario in Drupal 7 which is as follows, and need to eventually post the webform values to an external url: I have created a custom module which allows me to select a webform (based on the ...
0
votes
0answers
31 views

Drupal 7 commerce meta tags not updating

I am working with commerce module in drupal 7. I have installed metatag module. It working as expected for drupal default entities like node, taxonomy etc. But when I try to add meta tags for ...
0
votes
1answer
22 views

Customise Webform Email Submission Data 2

I had read some info from this content: How to use [submission:values] in Email template in Webforms Submitted on [submission:date:long] Submitted by user: [submission:user] Submitted values are: ...
0
votes
1answer
20 views

Hide conditionally hidden fields from custom node template

Case: I am using conditional fields module to hide some dependent fields based on the value of its dependee field. I have created a custom node--content-type.tpl.php template for my content type. ...