Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Version tags should be used only for questions that apply to a version only, not to merely say what version a site is using.

0
votes
1answer
9 views

Missing argument 1 for hook_menu()

I'm getting this error in my custom module. [warning] Missing argument 1 for signin_menu(), called in /public_html/includes/menu.inc on line 2813 and defined signin.module:2 here is my code to ...
0
votes
0answers
13 views

Custom search for Field collection field type

I have custom search module that working correctly for field title, field paragraph those are text or long text type. My questions, I would like to search from Field Collection(Combined fields of ...
-3
votes
0answers
24 views

Admin account gets 17% discount for no apparent reason?

I'm on a fully updated D7-site and for some reason my Admin account get's a 17% on all products. Other registered users see the normal prices. The only percentage-based discount that's going on on ...
0
votes
0answers
26 views

Why is node being set to unpublished when edited?

When I create content of any content type in Drupal, I set the status to Published. On editing it, the checkbox that says whether it has been published is unchecked by default and even if I check it ...
0
votes
0answers
9 views

Current submission value with php [on hold]

I am using webform 2 pdf module, where I want to customise the content, that depends on the submission results. Now I have a code, but it brings all the submission records, altought I only need the ...
0
votes
0answers
19 views

User edit loads data from logged in admin instead of edited user [on hold]

I have a user edit page for admin. As an admin, when I click to edit the user, some data loads from the edited user while some data loads from my own user. For example, when I click to edit the user, ...
0
votes
1answer
25 views

Alter The User Login Form Into Multi Steps

I want to alter my default user login form into multi step. therefore I have wrote a code which I'm pasting below. but this code is not working, whenever I click on "Next" button it will return on the ...
0
votes
1answer
11 views

Theme Suggestions for User Page

I want to create a separate html.tpl.php for user pages and user edit pages like html--user.tpl.php and html--user--edit.tpl.php. For nodes I have added: if (isset($node) && $node->nid) {...
0
votes
0answers
14 views

Domain Access module. PDO too many connections Error 1040

I have a Drupal 7.59 site, with domain access module installed and enabled. I have one domain called en.one and one database called english_com2016. I added another domain to it called au.one and it ...
0
votes
1answer
18 views

Form #states visible for numeric values

The form has two radio buttons like follows.The "design" radio field should be visible only when user selects 'Ten' or 'hundred' from the "price" field. If user choose 'other' it should not be ...
-1
votes
0answers
19 views

Sending Webform Data to a third party analytics tool

One of our 3rd party analytics tools need access to webform submissions data (Form name, submissions entries, date etc ). Could anyone please suggest any drupal web service that could provide read ...
0
votes
0answers
13 views

How to embed a login or register form inside a page content body

First of all I am new to drupal. I am looking for a solution where I can include a login or register form in the body of a page with admin-editable page content/markup flowing before and after it. ...
0
votes
1answer
14 views

Is db_set_active a global or local setting?

I need to run a new query on another database. I configured the settings.php $databases = array ( 'default' => array ( 'default' => array ( 'database' =...
0
votes
0answers
15 views

Cron job is failing HTTP ERROR 500 [on hold]

I have a website that has a calendar cron job that brings in all the information from google calendars. The client called and complained because the calendars she was adding were not updating. I ...
0
votes
1answer
10 views

ckeditor justify class

The justify "center" in ckeditor button is using use the inline "style" attribute, but I wantto change that to a "class" attribute. Instead of <p style="text-align: center;"> .. </p> I ...
0
votes
0answers
8 views

Entity translation - Language switching in edit mode leads to 404

My website is multilingual, with French, English and Dutch. English is the default. I use pathauto. I defined a path pattern for the content type "Analysis": analysis-request/[node:title] for English ...
1
vote
1answer
8 views

Workbench Moderation: Published data overriding draft data on draft view

Moderation's draft content not showing on the front end. When a node has both a published and a draft, the data from the published overrides the draft data on the front end when viewing the draft. ...
0
votes
0answers
13 views

PHPExcel - How to have “save as” dialog for export instead of saving on host?

I have installed PHPExcel module to be able to export data from my site. Everything is working ok, using the code given in the example page. The file is generated correctly but only on my host. I ...
5
votes
2answers
103 views

Using modules “not covered by Drupal’s security advisory policy”

I would like to use a Drupal 7 module that is "not covered by Drupal’s security advisory policy", specifically the Conditional Fields module. It would allow me to do exactly what I need. It looks ...
0
votes
0answers
17 views

Twitter timeline only includes tweets of user that were made after account was renamed

We had to rename the handle of a twitter account. The twitter timeline view now only shows tweets with the new handle. I guess its because of the screen_name join This is the view sql statement in ...
0
votes
1answer
10 views

Deleting translate interface strings programmatically or using drush

I need to delete some translated strings added using t() function, I've about 17000 string to delete is there a way to delete it using a SQL query or drush command? in which table those strings are ...
1
vote
2answers
24 views

Show different fields on node edit and node view depending on the sub-type of the node

I have a specific node type that I want to show/hide different fields in the page layout for both the node form and when viewing the node. For various reasons I don't want to have to create a new/...
0
votes
1answer
36 views

How can I see the clean query of a view?

I created a test view. It displays data of a content type 'Anagrafiche (name for internal use: contatti)'. The view has the following fields (sorry for the interface language): Contenuto: Immagine (...
2
votes
1answer
44 views

How to add an extra field in file upload widget?

I know that it is possible to enable a description field in the core file upload widget for Drupal 7. However, I want to add an extra description field like the one already present. For this I've ...
1
vote
2answers
24 views

How to prevent Profile2 fields from loading on user registration?

I have a profile2 Profile that's named Driver. This profile has a Term reference to a vocabulary named Cities that contains over 30.000 terms. I made a custom user-register.tpl.php by declaring it in ...
0
votes
2answers
22 views

Views image field

I'm trying to add inline styling to my Drupal image using the image field under view. No matter what method I try, nothing is working. I've run out of options. Any help? Below are a few code ...
0
votes
0answers
19 views

how to append current path to a url?

On a multilingual site, in order to let users pick their favorite language, instead of the basic block provided by drupal, I would like to use the Bootstrap Button dropdown component so i put a block ...
-1
votes
0answers
13 views

What is the easiest professional way to convert bootstrap template to drupal theme?

There are some Bootstrap 3 themes that I like and would like to convert them to Drupal. I wonder how I can do it. I went through different guides, but all were for converting basic html css. One way ...
1
vote
1answer
35 views

How to programmatically populate a country field

We are using the Countries module to provide country fields where editors can choose a country and it gets displayed in the frontend. Which works absolutely fine. But we want to fill that field ...
0
votes
0answers
16 views

Disable Bootstrap Tooltips for Individual Form

Is it possible to disable bootstrap tooltips for an individual form (all the components in the form)? I know I can do it in the Bootstrap settings, which will turn off tooltips for all forms, but I ...
0
votes
0answers
18 views

How to check Geocoder module is firing on User save?

I've been using Geocoder module, with Addressfield and Geofield modules, successfully on a site for months, but have now hit a strange problem. SETUP: The User entity contains a Geofield field ...
0
votes
0answers
14 views

Is there a way of deleting a file field without deleting the related file entities?

I'm working on a site that started uploading files via specific Fields appearing in Content Types, but has since moved to uploading them via admin/content/file/add for consistency. I'd like to delete ...
0
votes
1answer
25 views

Edit field in contentType B when creating or editing node of contentType A

I need to edit a field in contentType B when I create or edit nodes of contentType A. I know it's possible to use rules for this but I need to have more control so I want to do it in my own module. ...
0
votes
0answers
26 views

Performance Considerations When Setting the Cookie Expiration Date

Are there any performance considerations to take into account when setting a Drupal cookie to expire 10 or 20 years in the future? I know it's not possible to set a cookie to never expire as per the ...
-1
votes
0answers
20 views

Problem after updating Media module to latest version [closed]

I have updated Drupal core to 7.59 and Media module to 7.x-2.20. When I try to upload image through media browser, I get this error: Notice: Undefined index: #ajax in function ajax_form_callback() ...
0
votes
1answer
23 views

How to programmatically update a paragraph field

Trying to get certain paragraph field of certain node updated with new value with the following code: function my_module_node_update($node) { if ($node->nid == '111') { foreach ($node->...
0
votes
1answer
22 views

node API hook that can be used to alter fields before loaded by Views?

I need to use a node API hook to alter some node content before it's displayed, in Drupal 7. It just occurred to me though that if I used hook_node_view() it will not effect the output of a View ...
1
vote
2answers
28 views

How do I setup a proper 404 page?

At present, my Drupal 7 website’s "Page not found" is 301 redirected to a custom 404 page. However, I just checked the HTTP response code for a random URL and I noticed it 301 redirects to a custom "...
0
votes
1answer
26 views

Webform submission values with PHP

I am using webform 2 pdf module, where I am trying to set up a custom content to the pdf file. I would like to acces the webform submission data, but I have no idea how to do it. Basically I would ...
0
votes
0answers
11 views

Change date field; how to add timezone handling later

About date fields, this page https://www.drupal.org/node/767182 says If you start off without a time zone, but then realize that you need one at a later date [...] Perform the switch in the ...
-1
votes
1answer
26 views

how to detect the virus/malware from drupal website [closed]

I have created my website in Drupal. I have updated all software to the latest and recommended versions, like set php.ini detectives to the best security settings, and I have given upload folders ...
0
votes
1answer
12 views

Attempt URL alias for spanish version of page - “The path */* is either invalid or you do not have access to it.”

Drupal 7.59. We have the page whatever.tld/thanks and whatever.tld/es/thanks. I'm trying to setup whatver.tlp/gracias as a URL alias for es/thanks and it says "The path 'es/thanks' is either invalid ...
-1
votes
0answers
10 views

How to Search Api Drupal 7 civicrm option_value and option_group?

I install Search API, Civicrm Entity.. I want search in civicrm_contact. But In view, the collumn "sexe" is 0 or 1 or 2 or 3. those values from table civicrm_option_value and FK for gender in table ...
0
votes
2answers
26 views

Available node language only English

I have a custom content type with "Set custom language as default for new content" and "Require language". Custom default language is Current language. Entity translation is defined with "Current ...
0
votes
1answer
18 views

My Ajax call for my submit button does not work?

I am building a form with the form builder but I can't even get my button to use its ajax function to callback. Instead of doing a normal ajax call on the page, it reloads the entire page. What am I ...
0
votes
0answers
33 views

Hide empty terms

I have a taxonomy term for state and city. In first dropdown-box you can choose the state. Next, second dropdown-box that for city, you can see cities as sub-state. Each state has some cities, and ...
0
votes
1answer
24 views

Quiz Module persistance implementation details

In which part of the code is a new quiz stored in the database? What are the functions responsible for storing a new quiz in the database upon the submission of the form for creating a new quiz? I'm ...
0
votes
1answer
21 views

How can I toggle required field?

Using Drupal 7. I'm trying to toggle required field based on the click of a radio button. I already tried the proposed solution in this post but it did not work. Here is my code: $(context)...
0
votes
1answer
14 views

How to add a profile cover with a user field image in a view? [closed]

I am trying to add a cover image to user profiles in a block view, the image comes from a user profile field. The problem is that I need the path to that image because my neede code is like this: &...
0
votes
1answer
20 views

Memcache interfering with Simpletest

Adding some tests to an older Drupal 7 site and a few of the tests check for the presence or lack thereof of custom cache items. Having this in settings.php seems to interfere with Simpletest using ...