Questions tagged [7]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
40 views

Why is the jquery_update module not supporting the latest jQuery version?

The recommended jquery_update module only supports 1.10. Why recent jQuery security version 3.4.1 not updated? https://jquery.com/download/ So is it recommended to make my Drupal site to update with ...
0
votes
1answer
24 views

How can I pass parameters to a Services endpoint?

I have installed Drupal 7 and enabled Services in it. I have also created an endpoint /api/v2/ and in resources, I have allowed nodes to be listed as JSON. I have sent a GET request using browser or ...
0
votes
1answer
25 views

Get data from remote REST API (read only)

We use a remote service (not Drupal) to publish press releases and to show those releases in a remote newsroom. This remote service offers an API so we should be able to fetch and show the newsroom ...
0
votes
1answer
37 views

How do I skip importing a duplicate item?

I use unique field mapping, but instead of blocking the import on duplicates from CSV, it overwrites the data in Drupal and inserts the new value from the CSV file. This is the default behavior with ...
0
votes
0answers
8 views

Contextual raw value spiit

I need to take a first text before dash from an address bar to list related content. So for example, from www.aaa.com/US-NY-New-York, I would like to take US with contextual filter. I tried the Raw ...
0
votes
0answers
10 views

How to access the value of another field in the same field collection from a field template file?

In Drupal 7 I've customised a file download field in a template file: field--field-downloads.tpl.php Within the same field collection (using the 'field_collection' module: https://www.drupal.org/...
0
votes
1answer
38 views

Unable to load css files using ['#attached'] or drupal_add_css

I'm attempting to attach several css files to a Drupal 7 module. All files have identical read/write/execute and owner permissions. I haven't had trouble with one of the three files but I can't get ...
0
votes
1answer
32 views

How can i add ajax callback to checkbox in drupal form?

I am using taxonomy manager module I want to add ajax callback to checkbox tree view for checkbox is checked condition but it is not working can some one please suggest me. I have modified the code ...
0
votes
1answer
45 views

Site migrated to the new server with PHP 7.2 and I can't log in

We're preparing to get our Drupal infrastructure moved from PHP 5.6 to PHP 7.2. In order to start testing, I migrated a Drupal 7.67 multi-site from our current production server to a test server ...
0
votes
0answers
30 views

How to “link” Views exposed filter (fulltext search) with Facet API block (on a specific field)?

Using Drupal 7.67, Search API, Search API Database Search, Views and Facet API. I have built a search engine page with Views and Search API (with a server linked to the Drupal database tables). Two ...
0
votes
0answers
17 views

How to fill a multi-value term reference field in a ajax callback in a node add/edit form?

The machine name of the term reference field is "field_persons", using the autocomplete_deluex widget. function zwznertags_form_alter(&$form, &$form_state, $form_id) { if($form_id == '...
0
votes
2answers
28 views

How do I get the form submitted data in a custom module? [duplicate]

I have create a webform in Drupal 7. I want to access the submitted data in a custom module. I used my_module_form_submit($form, &$form_state) but no data has been found. Please Help.
0
votes
2answers
27 views

just want to change checkbox value while submit

I am using drupal 7: $form['title']['#tree'] = TRUE; $form['title']['node_first'] = array( '#type' => 'checkboxes', '#options' => array( 'value' => $value->title, ), )...
0
votes
0answers
46 views

How can I block bots after a number of failed Captcha attempts?

I am seeing hundreds of daily spam submissions that try to bypass Drupal Captcha module. I am already using honeypot contrib module, keyword blacklisting (rules) and I have added quite a number of IP ...
0
votes
0answers
39 views

D7: user_check_password() returns false but password didn't change

We've been having quite an unusual issue with Drupal: at seemingly random times it decides the password hashes for all users are invalid, and they have to do a password reset to be able to log back in ...
0
votes
0answers
14 views

Proper way to *define* new menu status code for a custom module

What would be the proper way to define a new menu status code inside a custom module? I'm developing a module where a user can add family members which can register for events. In the same spirit as ...
0
votes
0answers
13 views

Acess denied to files set as permanent in tmp folder

I made a module that saves custom files in the tmp folder when users add a product to the cart, and move the file to private folder when the order is submitted. If I set the file status to 0, users ...
0
votes
0answers
12 views

What is the best way to create uneven grids

I have a a 2-column grid view. They are equally sized but I thought that it would be nice to make one of them 1/3 and other 2/3 on each row. Just like in the example image. What would be the best way ...
0
votes
1answer
18 views

How to generate my own patches to update core for security when fuerstnet.de's “Drupal upgrade the easy way” page is out of date?

For Drupal 7, under the current host I'm using (which doesn't provide things like drush), I've found that patching is the easiest approach to updating core. However, the commonly-referenced page which ...
0
votes
0answers
53 views

How to alter data set up to be alterable by drupal_alter()?

The User Import project has an array named $supported. It also provides the following hook to alter this array: // hook to add functions to this array. // Will call all modules implementing ...
0
votes
0answers
78 views

Can file_copy() copy files between 2 folders in the same S3 bucket?

I need to copy images from one S3 folder to another S3 folder. Can file_copy() do that, or do I have to look into other ways to achieve this?
0
votes
0answers
45 views

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1074 Column length too big

I am trying to update my database collations to utf8mb4 to support more characters (like emojis etc.) following this guide: https://www.jeffgeerling.com/blog/2016/getting-emoji-and-multibyte-...
0
votes
1answer
30 views

Remove a contextual filter programmatically

Is there a way to programmatically remove a contextual filter from a view? I have a view where, at times, I want to display it without the contextual filter active. This is the code I tried. ...
0
votes
0answers
13 views

Drush migration argument for xml source

I asked this question a while back and it was answered correctly and helpfully. However, I'm currently looking for a different solution. I need a way to create a custom argument which I can use to ...
0
votes
1answer
26 views

Migration of field_collection with migration_d2d

In D7 to D7 migrations, when it comes to field_collections I know “ Your field collection migration should be run after the host entity migration. ”. I have done my host entity migration via the ...
0
votes
1answer
17 views

Building views relationship with location

I have an article and food content types. I use location module fields in both content types. So for example, when I write an article about restaurants in New York, I choose article's location as ...
0
votes
0answers
9 views

Sort views results by context

Background I have a global site search powered by Search API and Solr. This site search returns a mix of multiple content and file types. Some of these content types have a region taxonomy. Content ...
1
vote
1answer
23 views

Are changes to the user status stored somewhere?

I've made a pretty serious error of judgement creating a view for a client that shows users created before a date AND still active. The error was adding a date filter. This was meant to be used at ...
0
votes
1answer
27 views

Adding a script to certain pages

I am trying to add a script code on all but few pages. I tried the following code on the template.php bfile, but it doesn't work. function THEME_preprocess_page(&$variables) { if (isset($...
-1
votes
1answer
36 views

Drupal maintenance over several environments [closed]

I have a production environment for a Drupal 7 site. This environment is replicated to a staging environment, which we use for testing updates to modules and drupal core (same major version). We ...
0
votes
2answers
43 views

Views callback work only once with advanced form block

this code work but the views is callback only once (reload only once), any idea to reload more than one time ? see in detail on drupal.org function modulename_form_alter (&$form, &$...
-1
votes
2answers
37 views

CIDRAM on Drupal 7 [closed]

Has anyone installed CIDRAM (access management to block undesirable IP addresses) on Drupal 7. It requires adding a "php require" statement to a file that is executed on every attempt to access the ...
0
votes
1answer
18 views

How to use view's relationships to pull user entity reference data?

I created 2 new user fields for the user (object/entity) on my D7 site. Using views, I can select 'content' or 'user' for querying data. When I use views to query the 'user', the 2 new fields come up ...
0
votes
0answers
16 views

Edit a node via entity reference using Rules

THE SETUP: A custom user type - "Store Owner" - has access to create/manage 2 types of content: Store (which includes a "Related Products" field) Product When the user first sets up their account, ...
0
votes
1answer
41 views

Need to alter “No Paragraph added yet. Select a Paragraph type and press the button below to add one.” message - Paragraph Module

I am using paragraph bundle and I want to alter this message with my custom text "Please click on below button to add data".
0
votes
0answers
13 views

How to let Drupal Nodejs update views if create/modify node is through AJAX

The purpose to make simple todo list, where user can: Add new todo, Modify his/her existing todo, Mark his/her existing todo completed. all of the above in his/her home page (without going into ...
0
votes
1answer
41 views

Commerce Address Book – need to reuse customer profile without address

In addition to the default shipping and billing addresses I have added a customer profile in Drupal Commerce, where the customer can add additional info, like email for invoices, special marking on ...
1
vote
1answer
7 views

'Order of importance' type field

I'm using an Entityform to create a survey for a client, however one of the types of question they have is to rank a number of options in terms of importance to the user. Similar to how the ...
0
votes
0answers
14 views

How to import data from multiple urls using feeds importer?

I have two api urls. One returns all the products with product ids and the 2nd url return detail about a single product using the product id. So my requirements are. Request the first url, Get the ...
0
votes
0answers
9 views

How to compute field value of another content type using compute field module?

I have two content types. Let's call them "A" and "B". A has nodes with field_cost B has nodes with field_total_cost Content type A has a field_costumer which is referenced to the entity of Content ...
0
votes
0answers
8 views

Ckeditor with programmatic text_format field

I have ckeditor installed on my site, and when I use filter formatted textareas on my website where admin pages or fields were created using the UI, the ckeditor replaces correctly. When I use the ...
0
votes
1answer
26 views

How do I update the sitemap in D7?

I want to exclude some pages from the sitemap. I go to these pages/nodes, edit them, then go to the XML sitemap tab and set it to 'Exclude'. I then save and clear cache. But when I look at my ...
0
votes
1answer
22 views

Modal dialog doesn't work

I want to display ctools modal. I tried the following code. /** * Implements hook_menu(). */ function my_module_menu() { $items['my_module/%ctools_js/test-page'] = array( 'title' => 'Demo ...
1
vote
0answers
35 views

How to create a pair of dates (date_combo) using the Form API?

The Date module provide a field type called date_combo that allows a date feld to collect both a start date and an end date. It works as expected when I use the GUI to create a content type with a ...
1
vote
0answers
21 views

Multisite configuration with multiple domains and subdomains

Im using CPanel and Drupal 7. In CPanel I have created 2 domains and pointed to my drupal installation. In the drupal sites folder I have added a folder for each domain and added the settings file. ...
0
votes
0answers
8 views

use TableSort with multiple database tables?

I have a custom module where i want to show a table on a page. The rows of this table are the representation of a list of objects stored in database table A. Most of the columns show data from ...
0
votes
2answers
27 views

Enabling a contributed module under certain path only

Is it possible to enable a certain custom module under specific path only e.g. /store, and not load under other sections of a website? I am using Drupal 7.
1
vote
2answers
53 views

Programmically add multiple empty fields on a multiple value field/form

In Drupal 7, When you set a field "Number of values" to unlimited, it will show you 1 field on the creation page with an add more button. How would one go about so it shows 5 empty fields on the ...
0
votes
0answers
13 views

Export Text Format and CKEditor Profile with Features

First, this is not a duplicate of this, because I can't even get that far. The OP was able to put their CKEditor profiles into a Features module with all of the settings are stored in the Features ...
1
vote
1answer
26 views

Behaviour attach triggering twice

At some point in an update in the last few months, Drupal (7) started routinely triggering attached behaviours twice. At first I thought "this is my fault, my behaviours should check to see if they'...