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.

1
vote
0answers
27 views

How to use wildcard search in apache solr search module?

I am working on apachesolr search module. I want to implement wildcard search I have used hook_apachesolr_query_prepare() function to modify apachesolr query but it is not working can any one give ...
1
vote
1answer
28 views

How to prevent the conversion of text URL to link on a single URL?

I have a page that I am adding, and for my purposes I want to have a text-only URL without an automatic link, but only for that one link, one this specific page. I need to be able to add full html ...
0
votes
1answer
24 views

Add Mailchimp interests fields into webform_mailchimp signup field

Currently I am using: mailchimp 7.x-4.9 webform_mailchimp 7.x-4.x-dev webform 7.x-4.18 From this issue I applied patch #2 to webform_mailchimp 7.x-4.x-dev module, and I can see the file ...
0
votes
1answer
23 views

How can I build a redirect from submitted form values?

I'm working on a short weather app. What I want to do, is to catch name of the input of city and redirect users to the city's page URL after submit. function form_findYourCity_submit($form, &$...
-1
votes
0answers
20 views

Rules condition to filter on Entityform Type

I have 3 similar Entityform Types that I've created. I need to create a Reaction Rule that only operates on submissions of one particular Entityform Type. I thought "Entity is of bundle" or "Entity ...
1
vote
1answer
37 views

How to have a field with a select list widget and custom list entries?

In my content type there is a text field that is set using a list (combobox). When adding new content, the list is displayed with static elements. I would like to query an external site when the ...
0
votes
0answers
16 views

Merge Webform select option field into Mailchimp merge field

I am using webform_mailchimp 7.x-4.x-dev and MailChimp Version: 7.x-4.9. In my Drupal webform, I have a country select list field, where the user can select their country. How do I merge this field ...
0
votes
1answer
20 views

How to embed a view or a rendered node into a field group

I'm afraid my question is a bit to general because I don't quite know where to start. I still really don't have my head wrapped around the drupal 7 theming system. Scenario I have two content types:...
0
votes
1answer
49 views

Why do I get “Command pm-disable needs a higher bootstrap level to run”?

Running drush dis varnish in the Drupal directory gives give me this message. Command pm-disable needs a higher bootstrap level to run. Running drush --debug dis varnish -y gives the following ...
0
votes
0answers
16 views

no data is stored in cache_form table (Ajax 200 error)

I am using Drupal 7.59 and Drupal Commerce 7.x-1.14. After we updated our PHP version from 5 to 7 and migrated our database to AWS RDS. We started getting a lot of Ajax 200 error(Invalid form POST ...
0
votes
0answers
30 views

Redirect after logout based on a query string

I have an URL http://localhost/drupal/user?ReturnTo=..... i would like to check that query string "ReturnTo" and if that exists, then I want drupal to load that URL, that URL will be a fully ...
1
vote
1answer
25 views

Custom submission handler doesn't save the node

I have two form submission buttons: the normal one and one added via hook_form_alter. I'm currently using the normal default one as a save button which updates the node content as normal. The second ...
0
votes
2answers
25 views

Set views contextual filter as request_path()

There are fields in content type called URL and Image. Suppose, A node has "service" value of "URL" field and I'm trying to show views block where current path (service) and "URL" field path (service)...
0
votes
1answer
12 views

Edit custom field using user_presave hook during account creation

I have made a custom field for user field_custom_xyz from the admin GUI. Now after i saved it i got two tables into the database : one for data and one for revisions. I already have a huge database ...
-1
votes
0answers
6 views

Can not “add to cart” from front page

I am using Drupal Commerce for Drupal 7, when I try to add the product into a cart from front page it sometimes works and sometimes it just redirects to /node? (nothing after ?). Views and website ...
0
votes
0answers
11 views

How to run Ultima cron jobs without someone accessing the site?

I am trying to get cron jobs working properly using Ultima Cron. When someone accesses the site, the cron jobs are executed properly. My understanding is that when i use cron tab (as opposed to ...
1
vote
1answer
37 views

How do I verify a block can be shown in the current page? [duplicate]

I created a normal block and configured it using the following settings. I don't want to show the block on node/2 and node/3, for example. I want to get the block render, but verify first the ...
1
vote
0answers
17 views

Add granularity year expose filter to a Search API indexed result

I have a search API views that I'd like to add an exposed Date filter so people can have a dropdown with only Year in it is it possible to achieve that? what field should I index? (Post Created) and ...
0
votes
1answer
29 views

How to execute ajax into block view

I'm in Drupal 7. I would like to execute an ajax function in my front-page. I've defined the block view in my ".module" file. When I change the selected option, the log gets two errors: 1. Warning:...
0
votes
1answer
33 views

How can override the title markup on a node page?

I've managed to implement a custom page template but it still uses the default title markup. I'm trying to find out how to replace the markup around the title so I can change it to something like: &...
0
votes
1answer
19 views

Unable to override default translation publishing status using entity_translation module

We are using the entity_translation module in a large site, and we have 57 defined languages. We have some custom date fields in each locale, and we are using some custom code to only publish the ...
0
votes
1answer
33 views

How can I get a user by email address using a service?

I have a custom service that I created to do some stuff with users. I want to be able to GET and DELETE users by email address because I may not know the uid. I have the service set up now. It works ...
0
votes
1answer
26 views

Entity Reference - User reference field Hide “Restricted access” label instead of showing useless choices

i have an entity reference (7.x-1.5) select-list within a checkout pane which is being used to allow the user to attach a child to a product during a checkout process. The user can add multiple "...
0
votes
1answer
42 views

Image field causes #access to reset to default

I am using ajax to show/hide a field based on a date field. I set the default access to TRUE. If the user selects a date of birth over 18 years old, $is_younger and consequently the access switch to ...
0
votes
0answers
17 views

Disable field in Editable Views

I have a node field I would like not to be editable after 5 days from the initial edit. I set up a flag with the rules scheduler to flag that node after editing that field. I wrote a custom module ...
0
votes
0answers
25 views

How do I create a view of all user accounts who have zero orders?

I would like to create a view of all users and their total Commerce orders particularly including all those who have no orders so that they can be filtered for. I found a related question that solves ...
0
votes
1answer
22 views

How to join values of multiple geofields in a view?

I have a content type in which the site of organizations are displayed in a leaflet map with the help of an addressfield. (And all organizations are displayed in a joint map.) But certain ...
1
vote
1answer
29 views

Modify date popup structure

I would like to modify the date popup structure, in the image below you can see how date module builds the element. Drupal's default label is hidden, and it generates other to display the title. I ...
0
votes
1answer
27 views

How to add a column to DB with weight by using hook_update_N?

I want to add a column to a database by using hook_update_N(), but it should be 3rd column instead of last column. How I can achieve that please help in this regard. I tried to add weight but not ...
1
vote
1answer
43 views

How to compare text input with a user password stored in the database?

I've been trying to compare password values using a custom form. Actually I want to show a relogin form after a particular amount of time. So I have created a custom form with two fields – email and ...
2
votes
1answer
20 views

How to write hook_field_placeholder_info() for the link module?

The contributed project Field placeholder lets one use HTML5 placeholder attribute. The project page says: By default, this module integrates text, number and mail modules, but any other widget ...
0
votes
1answer
15 views

How do I programmatically add text to a page?

I am starting to write my first drupal module, but I need help on how to add content / text / data to the screen? I was able to add tabs and a url with hook menu, but I am unsure of how one goes about ...
0
votes
1answer
33 views

Module compatibility between major Drupal versions

I am planning to use Drift chat on Drupal website, which is built in Drupal 7. I could see Drift modules only for Drupal 8? Will this work with Drupal 7 as well?
0
votes
1answer
19 views

Add an extra to the price of the product

Guests can add a meal plan to their cart. They can compose their own formula. Type of sandwich, drink and dessert. For example the list of drinks is a list of 'taxonomy' terms. However some drinks ...
2
votes
2answers
35 views

Independent search box for views taxonomy page

I'm using the "taxonomy term" view. I would like to have a search form box independent of this page, which I will place for example in my navbar, allowing me to search among the terms of taxonomy, ...
-1
votes
0answers
29 views

Is there a method to display all instances of a file or node?

I am working on a rather large website that has multiple links to a certain .pdf file. Is there a way to identify all the links?
0
votes
0answers
27 views

Maintenance mode theme doesn't work the same in D7 as it does in D8

Recently we needed to put a D8 site into maintenance mode to act as a sort of holding page whilst updates were made to content before a go-live. In order to entirely sandbox the theme, to stop any ...
0
votes
1answer
30 views

Returned content not displaying

I have created a custom page which has a db query to return content, which is using the pagerdefault extender on a Drupal 7 install. However when I return the content the pager shows but not the ...
0
votes
2answers
24 views

How can I make a node like template for a vocabulary?

I have a taxonomy where I want to theme the term pages. I only want to theme the terms pages in this taxonomy. No matter what I do I can't see to get it to show a template file that I can then ...
2
votes
1answer
25 views

Is there a way to display primary tabs vertical in separate block?

In Drupal 7 I want to rearrange standart drupal tabs (eg. 'View' and 'Edit') as vertical and move it to sidebar. Is there a way to do this?
0
votes
1answer
34 views

How to pass seperate contextual filter values to a view and get results programatically?

I've a view having two (separate) contextual filters, say node id and taxonomy id. We can pass separate contextual filter values with a "/". example: 12,13,14/8,9 as URL arguments. But how can we get ...
0
votes
1answer
26 views

Elements not showing in $form object

I have a webform with some fieldsets. Within each fieldset is a set of input elements that are the same for each fieldset, and each set of elements has the same machine name. One of the elements is a ...
0
votes
0answers
15 views

Trying to get a paragraph bundle within an OG to use EVA display

I am looking for help getting a news block working for my website. I currently have: A paragraphs field on a content type where the user can add a "Department News" paragraph. The page it's being ...
0
votes
0answers
36 views

Using Display Suite API to flatten field_collection

I have an existing module that used node_view to build out html for an entity. Customer desires access in Drupal to change up the order of the display of the fields and Display Suite seems to allow ...
0
votes
1answer
19 views

How to render a variable which is having a wysiwyg type format?

I am creating a variable in admin section that is of form type #type = text_format to get wysiwyg kind of editor. But having difficulty while displaying the field value in template file. I am trying ...
0
votes
0answers
12 views

Is it possible to add each new zip code to a location taxonomy?

During registration, I'm looking for a way to let users input their zip code with an autocomplete feature from Google maps API, when they create an account. Is it possible to add each new zip code to ...
0
votes
2answers
26 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
1answer
37 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
17 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
2answers
32 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 ...