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

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.

4
votes
0answers
54 views

How to get a second join into hook_views_data?

I am trying to make the value of a string (name) found in mymodule_names.name available to Views by means of hook_views_data(). To get the name, I need to first look up the nid of the node I want ...
0
votes
0answers
22 views

Updating the delta value on a custom field

I have a content type with an image field and I am trying to update the delta value. I'm assuming the delta value is used to sort the images when they're rendered. (If there is a better way please ...
1
vote
1answer
14 views

Webservice args types automatic validation

It's a Drupal 7 with Webservices module, and there is a service with something like this (example): 'create-product' => array( 'operations' => array( 'create' => array( 'help' =&...
0
votes
0answers
18 views

How to create a chart based on role count?

I need to create a pie chart on commerce orders according to user roles (for example, how many orders for people with a specific role). I have tried with Views and Charts but the aggregation on user:...
0
votes
1answer
23 views

Drupal commerce (Coupon & Discounts) - Alter rule condition

I have a drupal commerce website on which I have add the discout module to make discounts and coupons. I have in my backoffice a list of all the orders and I can modify them if I want. The problem is ...
0
votes
1answer
80 views

How do I add a CSS class to a p tag in CKEditor?

The standard center button only applies a in-line style to the HTML. But how can I add a class 'text-center' to a paragraph or selection by clicking the following icon? I went ahead and created a ...
2
votes
1answer
22 views

Firefox can't download private PDFs

I have an issue with FireFox where it can't download generated private file PDFs, yet Chrome has no such issue. We populate PDF files with TCPDF and they get moved and copied into a few different ...
0
votes
1answer
22 views

Commands character limit?

I have 2 functions in a custom AJAX callback which are really confusing me, one returns an image from a single node, the other retrieves a list of nodes first, then loops through them and returns ...
-1
votes
0answers
21 views

How to sort global view using draggable views?

I have created three field collections and sorted the each field collections with the seperate draggable views. Now, I have 3 view blocks. I want to sort the 3 views block using the draggable views. ...
0
votes
2answers
26 views

Unable to set default value for checkbox form element inside tableselect

I've created a custom table using a tableselect element, and within each row, I have a checkbox form element that should populate the checkbox from a checkbox field in the node. I've tried every ...
1
vote
1answer
7 views

Can't edit Panels content

When trying to change the Panel content design, there are no controls displayed as shown: This is happening only when using Charts in my Panel page. I got this error chrome inspector console: ...
0
votes
0answers
32 views

Upload a JSON from a third party application

I have a client hosted on Acquia, and they are requesting that we implement functionality to allow another companies 3rd party application to upload a JSON file to an upload directory within their ...
0
votes
1answer
21 views

Entityreference multiple choice

I have an entityreference field on users and I can't find a way to select more than one value. I want to make like a multiple select, but with the entityreference. I use the EntityReference module, ...
2
votes
1answer
18 views

How to filter by language in default search

On a D7 (7.60) site, we're currently using the default search tool for a little search form block on the page. Our site has multiple language versions, dependent on url. Right now, content in 4 ...
0
votes
0answers
17 views

How do I schedule a content reminder?

I'm trying to create a scheduled rule that is triggered every time a node is either newly published or an existing node is updated to schedule an email alert in three months to alert users in a ...
0
votes
0answers
7 views

How to create a one time custom link just like one time login link?

I want to create a custom one time link like user/somehash/[someparameter] so that I can send it to the user in email, and he can access it only once. If I use a link without hash then every one can ...
0
votes
0answers
11 views

How to use element validation and form validation on the same form?

I have a custom form I am validating with a custom validation function like this: … $form['submit'] = array( '#type' => 'submit', '#value' => t('Submit'), '#validate' => array('...
1
vote
1answer
27 views

Does the summary area support input filters?

I have noticed that text filters placed in the summary area don't seem to work, that the raw text appears in the summary info when posted in Twitter, Facebook and the like. Is that some inherent ...
0
votes
0answers
22 views

Some users receive email with no body

I have a Drupal 7 site with over 400 users. Time to time I use Mass contact to send updates to the users. I noticed that some of the users receives blank email with no body. I get no errors and there ...
-1
votes
1answer
22 views

Image style not generated in amazon s3

I have images store in amazon s3. When I upload image in Custom image style it not generated . But when I upload image in default files folder it generated. So, Can anyone help to what is the problem ...
0
votes
1answer
35 views

Pass list from Jquery to form

I have an AJAX form that I've created into a block exposed on my current page. I will have an interface that will allow the users to select an indefinite amount of content to be used within the submit ...
0
votes
1answer
22 views

States with a variable

I have to do a form and in this form I have a select to choose a value, from this value I load a node and from this node I get a boolean. With this boolean I have to show or not another form field, ...
0
votes
1answer
25 views

Conditional clauses with Entity field Query

I have a syntax issue on using conditional clauses with EFQ, but the documentation on drupal.org is a bit unclear for me. I have google the whole Internet for this with no results at all. My hook ...
0
votes
1answer
28 views

Update the author_uid for an entity registration

I'm looking to update the author_uid for an Entity Registration in Drupal 7 programatically. I want to replace all anonymous users with the UID of 0 with another UID lets say 2 upon saving the ...
2
votes
0answers
27 views

Can I truncate “field_revision_body” without breaking the site?

I am cleaning up a client's Drupal 7 site that has been badly hit by spam. Both Drupal's Backup & Migrate module and the CLI tools such as mysqldump and mysql runs out of memory when trying to ...
0
votes
1answer
25 views

Is it necessary to clear site caches after putting site into maintenance mode?

I enabled maintenance mode on a Drupal 7 site; however, when I checked the homepage as an anonymous user, I noticed that the original homepage was still being displayed rather than the maintenance ...
0
votes
0answers
12 views

How 'checkboxes' form element supposedly can have #default_value if there is nothing to make this work? Or is there?

So, documentation indicates that 'checkboxes' element is making use of '#default_values' property. There are multiple threads indicating that it's possible, like: Checkboxes: how do I set the default ...
1
vote
0answers
20 views

Views: Filtering by latest of end dates in multi-value field collection

I have a content type that contains a multi-value field-collection field (itineraries). That field collection has another multi-value field collection field (legs). The legs field collection ...
1
vote
1answer
40 views

Is there a downside of having too many features?

I have worked on or seen different D7 projects in the past, with different strategies for features: One feature per view, content type, etc, with a consistent naming pattern. The result is many ...
0
votes
1answer
35 views

Is it possible to do a user search by taxonomy?

my question is because I have users with a taxonomy field and what I want to do is search for those taxonomies. Example: a user in his profile chose a taxonomy, let's say soccer. I want to make a ...
0
votes
1answer
25 views

entity_load not fetching the updated column

I've a custom entity {my_table} and added a new field in schema file as follows /** * Add {new_column} field to {my_table} table. */ function MY_MODULE_update_7100() { $table = 'my_table'; $...
0
votes
1answer
59 views

Programmatically set value of Boolean radio button field in form

I am using a custom field in the profile2 module for when a user registers. The field is a Boolean field using the radio button widget. I want to programmatically set the value for the field using ...
0
votes
1answer
16 views

Themeing custom form as table and getting updated field values on submit

In my attempt to create a table that shows all of the locales for a node and contains two editable fields, I've come up with the following functions: function language_dashboard_overview_form($form, &...
0
votes
0answers
14 views

How to get / pull unique values from Database and not duplicates?

I have a multi-site and a database full of values that are identical, with the only thing separating them apart is the type of site. For example: Site1 = Myvalue1 Site2 = Myvalue1 Site1 = Myvalue2 ...
-1
votes
1answer
39 views

Block certain IP addresses

How to block certain IP addresses if we receive too many GET requests from particular IP addresses for a Drupal 7 website?
1
vote
1answer
19 views

Views switches to another view on apply or any change

When I'm working on a block display in Views on Drupal 7, and hit the "Apply" button, I'm taken to the master (or first view), instead of staying on the block display that I'm working on. How do I ...
0
votes
0answers
57 views

Connecting site to AWS RDS results in HTTP Error 500

I've moved my Drupal website over to AWS (using an EC2 instance and RDS instance). Everything moved over just fine. However, when I try and connect my drupal installation to my RDS database via the ...
0
votes
1answer
15 views

Show content with a date after the current one on a view

I'm creating a calendar of events with Drupal 7 using views. At the moment the elements are shown in order of the date of each one (I have a date field where I put the date of the event). Now I need ...
0
votes
0answers
15 views

How to enable the bundle filter callback (data alteration) programmatically?

I want to enable the bundle filter in the search api through code. Is it possible using a hook? or it can be code through a custom query? I checked this hook ...
0
votes
1answer
23 views

Date popup field won't display in tableselect element

I am attempting to embed a couple of date fields within a tableselect element, and after trying to use both textfield and date_popup field types, I can't get either to work. Here's my form function ...
0
votes
1answer
36 views

Drush upwd Changes Database Hash but Login Fails

I have a weird one. I have a site that was abandoned for a while and we need to get access to it again. So I tried to use drush to reset the admin password, but it's not working. I'm using Drush 8.1....
-1
votes
3answers
53 views

How to include tpl inside another tpl with parameters?

I have worked with drupal 8, i included twig template inside another twig template file like the bellow. {% include module_path ~ 'templates/template.html.twig' with { 'content': someVars, } %} ...
0
votes
0answers
18 views

Making a panels element visible depending on comparison of username with a multi-value field of viewed user?

I need to set a visibility rule (as PHP Code) in Panels similar to the one below. This one shows the panels element when the field_madepurchase of the user is bigger than 1. global $user; $user_data =...
0
votes
0answers
12 views

Why updated Mime mail module sending mails with attachment?

Recently we have updated Mime mail module and after that all the emails of our website is sending with an attachment named attachmet.dat. Can anyone help me to resolve this issue. That file has ...
0
votes
1answer
24 views

Using Drush on shared hosting without `curl` and `wget`

I have a Drupal 7 site installed on shared hosting. And installed Drush:8.1.17 with composer and cgr all is working well except drush up because hosting provider does not support curl or wget on ...
0
votes
0answers
16 views

EntityFieldQuery for checking if field exist Drupal 7 [duplicate]

I'm using field collection attached to a user. I need to check if the field collection is empty: $id = 9473; // sample user ID $query = new EntityFieldQuery(); $query->entityCondition('entity_type'...
0
votes
0answers
9 views

Field collection items to grouping render when a field has a certain value

I have a field collection item field named field_base_feature and it has two field repeated as much as needed. title and body. I want to wrap the field collection items in a custom div <div id="...
0
votes
1answer
15 views

How to edit e-mail settings for project issue content type

I am using the project and the project issue module on a Drupal 7 instance and ran into some trouble with the notification settings. Apparently, the poject issue module saves for every content type a ...
0
votes
0answers
18 views

How do I reference values from multiselect on page

I'm using forena in drupal 7. I've got an input parameter as a multiselect: <frx:parm id="stationname" label="Station Name (hold ctrl for multi)" desc="The name of the station" data_source="foo/...
0
votes
1answer
39 views

How create a new variable according field value

Please I need a hand, I would like to create a new variable like the native "frontpage" variable. I have a content type called "Config", in this CT I have some boolean fields and I need check for this ...