Questions tagged [7]

Version tags should be used 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
3answers
79 views

How to set up a cron job that runs for a specific rule?

I have a 2 rules that should run each on a specific time interval instead of the regular cron job setting. I have a list of "Sessions" (entity type) that should be evaluated to see if their ...
0
votes
0answers
15 views

How to send metric data to Google Analytics when a PDF is associated with multiple subsites?

We use Drupal 7 with Google Analytics and Google Tag Manager. We have an interesting setup for our site that has a content type called "Public Resource" each of which will have a PDF ...
0
votes
0answers
30 views

How can I call Rest API data from one module to autopopulate on another module?

I have created one module in Drupal 7, in which I have created a form and on submit I have called an Ajax submit callback function which returns a response of a Rest API. Now I want those data from ...
0
votes
1answer
51 views

Send email after updating a field on a webform

I have a webform with a set of fields. When the form is submitted, a website admin needs to update a field on the form based on some criteria. I need to send an email to the sender only if the value ...
0
votes
0answers
52 views

How can I query a webform in all instances at once to export a file?

We recently had a security breach and those making the decision opted to remove the capability of end users to create the file upload component. What I am hoping to do is two-fold: 1.) Use drush sql-...
0
votes
0answers
14 views

How can I group items by taxonomy within another taxonomy grouping?

I have content items that are tagged with multiple taxonomies. I would like to group the items first by taxonomy 'Site Section' then within that grouping by a second taxonomy 'Program Category'. I ...
0
votes
1answer
22 views

Show views active filter values as pills without using Facets

I have this requirement where selected filter values need to appear as "pills" on the page with an "x" which, when clicked, would unset the filter and reload the search without ...
0
votes
0answers
28 views

Webform using popup onload module drupal 7

Webform using popup onload module drupal 7 . I have created webform and installed popup onload module. could you please let me know on how to add the webform in popup content
3
votes
0answers
81 views

Image derivatives removed by some process, only regenerated when switching to maintenance mode, then removed again

While moving a bunch of legacy D7 sites to a new server, I bumped on the following problem with one site only. This is certainly NOT the classical permissions issue on files directory. Bug description ...
0
votes
0answers
21 views

How prevent authorized users from responding to comments?

How do I ensure that only administrators can reply to comments in sites such as content type? That is, if an authorized user views a node of the "content" type, he can leave a comment on it, ...
0
votes
2answers
127 views

How to get the input value with preprocess from a Fulltext Search Filter exposed form

For Drupal 7 I found a workaround to a similar situation here, when combining Core search block forms and search api contextual filters. This "workaround" won't work when using Search API, ...
0
votes
0answers
22 views

Filter Content and Files using the same Taxonomy term filter in Search API

I have several File (File Entity) and Content (nodes) types both referencing the same Topic taxonomy using the same field (one field, reused). The contents of these files/content are indexed in the ...
0
votes
0answers
18 views

How can I conditionally override the field description?

I am using the Reference Field Option Limit module in Drupal 7 and I want to change the explanation text that says: No options are available for the current form values.. I want to put instead: ...
0
votes
0answers
31 views

Cannot enable PHP Filter module in a fresh Drupal 7 installation [duplicate]

In order to test my ISP (a2hosting.com), I created a simple website running Drupal version 7.74 (the latest from the 7 branch) on a subdomain. It is a standard installation, with no additional modules ...
0
votes
0answers
37 views

Relative date filter views block is cached for anonymous users

Drupal 7.74, views 3.24 (latest) I have a view which uses a date field to filter and shows on: less than or equal to "now" I display the view in a block. With caching for anonymous enabled, (...
0
votes
2answers
39 views

Display multiple timezone values from a single date/time entry

In Drupal 7 Views Date/Time field, is there a way to generate multiple timezone values from a single event date, with start and end values? For example, if an event is entered into the start/end Time ...
-1
votes
1answer
42 views

How do I completely translate a page?

I want to develop a site in two languages. How do I completely translate a page? For example, the menu tab and other places cannot be translated. I just can translate using the Translate tab. In the ...
0
votes
0answers
115 views

"Error: Allowed memory size issue"

I have Drush installed on my Inmotion hosting server. For one Drupal 7 site, it works just fine but for the other one, which is nearly identical, it doesn't work so well. Some commands it allows (like ...
0
votes
0answers
26 views

hook_user_insert() doesn't fire a custom rule

The operation should be as follows: Trigger an event after registering a new user. test_rules_rules_event_info (example_rule_event) it's my event test_rules_user_insert when a user is registered ...
0
votes
1answer
8 views

How to allow access to page variant (Page Manager) if user belongs to list

The Situation I have an ECK entity called "Event" in my Drupal 7 site. I have an entity reference field on Event that collects users who flag the Event with a non-global flag called "...
0
votes
1answer
181 views

Why isn't a PDO driver detected on the install page?

I have an old Drupal 7 project and I need to set it up on my localhost. I have Ubuntu 16.04, Apache 2, php 7.0, and MySQL 5.7 installed. Everything is working fine for other PHP scripts, But when I ...
0
votes
0answers
12 views

When a Boolean property in ECK isn't added to the entity edit form, it is automatically unchecked. Why?

So I have an ECK entity type with a boolean property called "status", similar to the node "publish" boolean. I use Page Manager to control what fields and properties will be loaded ...
0
votes
0answers
24 views

Admin interface styles sometimes missing; frontend CSS loaded

Using administration pages on an old Drupal 7 installation, the "normal" admin CSS styles are sometimes gone and the page appears with the frontend layout. After reloading the page, the ...
0
votes
1answer
18 views

How can I send mail containing rendered entity from referenced field?

How do I code a function for sending mail containing a rendered entity that is referenced from a field? I have content type A that contains static information, and content type B that users create and ...
0
votes
0answers
22 views

Views pager not printing

I am working on a project in Drupal 7 and the pager is not working properly. It will display on the block but not on the page no matter what I do. I have even tried changing the pager_id and that ...
0
votes
0answers
183 views

How can I get nested paragraphs out of Views JSON API?

I have a content type with embedded Paragraphs, and I'm trying to get those paragraphs into a JSON response, via a Views endpoint, along with the rest of the node. For example: Product (content type) ...
0
votes
2answers
47 views

How to hide all nodes of a particular content type?

I have a site that used to run polls, but has stopped doing so. I'd like to keep the poll nodes in the database, just in case things change in the future, but otherwise hide the nodes. I guess this ...
0
votes
1answer
63 views

Autocomplete field where title is replaced with NID

I'm using Drupal 7 and I have made autocomplete function to be called on a field. File my_module.module: <?php function my_module_menu() { $items = array(); $items['/...
0
votes
0answers
29 views

How can I get custom code running at a specific path? [duplicate]

I am trying to add custom javascript to my Drupal 7 site which I need to run on the path /node/add/h5p-content. I have created a custom module (called mods) with the function: function ...
1
vote
0answers
38 views

Why is my View empty if the taxonomy term of a field on an entity is not set (i.e. 0)

I am using ECK in Drupal 7 and I have an entity that has a property called "your_country". The behavior is "term_reference" (using the eckextend module) The type is "integer&...
0
votes
1answer
34 views

Is checking the value of $order->status sufficient to understand when an order has been completed?

If I want to use this hook in order to execute a code when the order is complete. function hook_commerce_order_update($order) { if ($order->status == 'completed') { // ... } } Is this ...
0
votes
1answer
33 views

Access orders with own products

In my store, i am allowing customers to create products like Courses using Drupal 7 Commerce module, Is there a way using views or whatever method to enable the sellers on my site to see orders placed ...
0
votes
1answer
46 views

What is the difference between the "complete" and " checkout complete" order statuses?

I am using the Drupal 7 Commerce module. I would like to execute a special code when the payment of the order is completed. What is the difference between checkout complete and complete? I googled and ...
0
votes
1answer
37 views

how to add exposed drop-down filter with options in a view of custom table

In a drupal 7 website, I have a view that is based on a custom table. I have a status column in that custom table, which is type of integer and has 0 or 1 value, and in a view I want to add exposed ...
0
votes
1answer
134 views

Why authenticate request returned 403 after successful login?

I have front-end with AngularJS and its connected to drupal backend. I am using drupal services module for rest api. I have an angularjs web app in subdomain [admin.example.com]. My authentication ...
1
vote
1answer
25 views

Date field with selection back more than 20 years

I have a date field: the year selection is possible 20 years back from now: But I need it to be 25 years. Is this a fix Drupal setting or can I change that?
0
votes
1answer
26 views

Can't log in as admin

Someone let us know about an error on our site. I logged in (as an admin). I was able to move the site to maintenance mode and then went through the steps to clear the cache on the site. Once I did ...
2
votes
1answer
42 views

Should scripts/*.sh files be executable?

Drupal 7's recommended file permissions don't allow it's /scripts/*.sh files to execute. Should any server user have the ability to run those?
0
votes
0answers
11 views

views template strips SCRIPT markup

I use custom display output views template to add markup to view. Somehow it seems that whatever the template output is filtered through, it strips script tags. Anybody know what function and where ...
1
vote
1answer
49 views

Alter a module's setting

I am using the Entity background module, which at the start of its .module file has a line which defines an image style constant. define('EB_IMAGE_STYLE', 'large'); I don't want to use that image ...
0
votes
0answers
20 views

How move_upload_file calls to custom stream_wrappers class

In a node form, I upload a image to the server via ajax and before to send to the uri, I want to optimize the original image (not a image style). How is possible that from move_upload_file that is a ...
0
votes
0answers
192 views

Remove duplicated results - Apache Solr

English is not my native language so please be patient. Good afternoon, my Drupal 7 site is currently holding several articles, help topics, and document guides that are versioned, i.e search the &...
0
votes
1answer
345 views

Getting Bootstrap Carousel to set Active class?

I have a Drupal 7 site that has 2 Bootstrap carousels. One that rotates automatically and takes up the width of the page. One that has 3 smaller items and only when the page is narrowed (e.g. on ...
0
votes
0answers
44 views

Mixing node content with custom PHP code

I got a "normal" node that contains some simple text content like this: This is how our internship program work ..... After that text I want to include a list of our current team members. ...
0
votes
0answers
15 views

Taxonomy filter on custom view is only showing terms with no children

I have a form that sets the value for parent terms in a taxonomy vocabulary (web_topic). The variable 'search_topic_options' is stored in the variable table with variable_set. The form allows the user ...
2
votes
1answer
334 views

How to block third party cookies?

I have EU Cookie Compliance installed on my website. In the settings I have selected Opt-in option. On the site front end, I only agreed to the functional cookies but there are cookies set by third ...
0
votes
0answers
41 views

Checkbox Form Element: Displaying checkboxes value based on on/off

I have a checkbox form element that uses taxonomy terms via variable_get as #default_value; storing the result. I don't want to overwrite value, I just want the form to render/display checked ...
0
votes
1answer
82 views

How can I programmatically change the parse mode?

We have a view that works with Search API and Solr search. The multiple search terms work with single quotes and with no quotes. I want to make the search terms work with double quotes as well. The ...
0
votes
0answers
139 views

Drush can't bootstrap sites

I have an Ubuntu 18.04 server where I have one Drupal 8 and two Drupal 7 sites. I have installed drush 8.4.5 which works great for the Drupal 8 site but on the 7 ones it can't bootstrap. After some ...
0
votes
0answers
31 views

Conditional .htaccess rule for multisite sitemap.xml

We have multiple sites hosted with Domain access module. I was planning to host sitemap.xml files like web_root/zyx.com/sitemap.xml and web_root/abc.com/sitemap.xml. I am using the following code. ...