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
0
votes
1answer
477 views

What does it mean “Rebuilding” in a feature? Can it be resolved?

I did some changes in my local environment, then I updated the 'feature'. When I try to deploy the change to another environment, but before I can start the 'revert' operation, some parts of the ...
0
votes
1answer
457 views

Show node body fields for entity reference checkboxes widget?

I need to show the body field of the nodes next to their checkboxes in an entity reference field widget (default is just their node titles). Is there a way to do that without writing a new widget?
0
votes
1answer
568 views

Gmap not displaying

I have Gmap and Location module. I have created a content type and also added a field location with term reference(Taxonomy term). I have just added a content and selected one location. But I can't ...
1
vote
1answer
489 views

How do i generate token for each user they submit my custom form?

I have a created a custom module with simple form with only three fields ( Url, title & email ) , where user has to enter all the fields for submission. I am able to send the mail to the user ...
1
vote
3answers
2k views

Adding an address to a node's address field programmatically

I am presenting a form to receive an address. I want to take the data and add it to a node that has an address field (from the address field module). Can someone point me in the right direction on ...
0
votes
1answer
505 views

Cannot use feeds to import into data tables where the primary key is multiple

I am using Data Module to create tables in Drupal. Now, I need to import some data through CSVs, for this I want to use Feeds Module. My table consists of more than one primary key i.e. a group of ...
0
votes
2answers
589 views

Decryption failed because the HMAC could not be validated while decrypt

I am using the Encrypt module to encrypt some of user object data. I can encrypt data, but while decrypt it, I get the following error: Decryption failed because the HMAC could not be validated ...
0
votes
0answers
7 views

Content corrupting when reverting a revision

Our website is powered by Drupal 7 and have a bootstrap based rotating carousel on the home page, which has a link on each slide to a different page. This is powered by the Bootstrap Carousel module (...
1
vote
1answer
454 views

Infinite Redirect Loop with PURL and spaces_og

I created a calendar feature for organic groups, and tried to enable it in a group with spaces_og. The page refreshes saying changes have been saved but the feature is still disabled. In the logs, ...
0
votes
1answer
517 views

Programatically Submitted Form With 'file' Field Throws Notice

This seems to actually be a problem in Drupal itself. In /modules/file/file.field.inc the function file_field_widget_form has a line like this near the bottom (just before the return statement): $...
0
votes
0answers
13 views

Display a table after form

How display a table and some html content after form in drupal 7. I am trying to build something showing in the image. Kindly provide some tips to build this.
1
vote
2answers
342 views

How do I get only node IDs from the search results?

I'm using Search API Solr with custom searches in code, but I want to find a way to limit the return results to only the nid to save on bandwidth with our third-party solr server. I've tried $query->...
0
votes
1answer
701 views

Error message “responsive-utilities.less” not found

I did set-up the sub-theme with less for the Bootstrap theme. Following is the file structure, Installed less using(Instruction followed from here), $ npm install -g less Then ran a following ...
0
votes
1answer
456 views

How do I insert a user picture's thumbnail on the “Submitted by” field?

I want to insert user picture's thumbnail on "Submitted by" field, which is displayed in teaser such as the following. Submitted by [some_user] [someuser picture's thumbnail] on xx/xx/xx How do I ...
0
votes
3answers
572 views

receiving incorrect url from amazon s3 module

I am using drupal 7. I have installed amazon s3 module and its dependencies. I have created a bucket for saving my files on amazon server. Everything went good.. But when i try to get the path for the ...
0
votes
1answer
947 views

View field with JavaScript code in it

I have content type which has text field. Each node has its own javascript code which is set in to the text field. Text field is PHP Code format. When I add this field to Views block site load ONLY ...
0
votes
0answers
27 views

How to load a internal page content within div?

I have following code in a basic page on drupal 7 <h2 id="tabs">Test Title</h2> <!-- Nav tabs --> <ul class="nav nav-tabs"> <li class="active"><a href="content/test" ...
1
vote
1answer
466 views

default value imagefield -> get from field collection item

I've got a contenttype "gallery" with an imagefield "thumbnail", used in listviews oder teaserviews. This contenttype also has a field collection with "image", "title" and "description". So what would ...
1
vote
3answers
3k views

Drupal 7 localhost subsites configuration

I need some serious help with setting up a Drupal 7 based multisite, please. I know how to install a single instance of Drupal very well but I want to create a number of sub-sites under my Drupal ...
0
votes
1answer
463 views

How to setup a rule to redirect to shopping cart?

I am trying to create a rule that after a user creates an account they are sent to a Checkout page that will eventually have them pay via PayPal ( I am using the Commerce Module ). My steps so far ...
0
votes
1answer
17 views

Feeds import from Restful Web Service module output

I have a D7 website, which expose a node through the module Restful Web Service https://www.drupal.org/project/restws It does exposed my website node in Json format. The only issue I have, is the ...
2
votes
2answers
25 views

How to make fields of a cloned node available in Rules

I have a rule that clones a node once it's flagged. I can set certain parameters for this newly cloned node but not all. I read in other posts that you have to use a conditional rule to identify what ...
1
vote
1answer
515 views

Place the language switch in the main menu bar

The language switch appears on the bottom of the page. How can I move it to the main menu?
-1
votes
1answer
506 views

Custom form callback [closed]

I created a custom theme. function test_module_menu() { $items['my-test'] = array( 'title' => 'My title', 'page callback' => 'test_module_page', /* callback function */ ...
1
vote
1answer
552 views

How to set body field display programmatically on node type install?

When hook_installing a new custom node type filled with custom fields I call field_create_instance($instance) where I also set the custom fields' display like so: 'display' => array( 'default' =&...
0
votes
2answers
501 views

Limit the number of uploads per image field depending of role

I need a hook (or something similar) where I can set the number of image uploads depending of the role of the user. In the settings of the field there is no way to set the maximum number of values ...
2
votes
1answer
491 views

Having issues getting solr search facets to appear on non-search pages

I'm using the solr search integration module with facet api on drupal 7 and I'm having issues getting the facets to show on non-search pages. I've checked the box for non-search pages and added a few ...
0
votes
1answer
567 views

View modes are stuck on default view

I had my site for quite some time and just started to use the display suite view modes feature for changing the displays per node. I made new view modes and tried to change them for my nodes, but it ...
1
vote
1answer
519 views

It's a way to select by default N/A checkbox

I want that if a fields is not mandatory the N/A options on select box is ticked by default. I have tried to tick default value N/A on the field but after the setting disappear. I use Drupal 7.15. ...
1
vote
1answer
512 views

How to include XML file in node for js map rendering?

I have a clickable map that uses js, css and xml to display. I previously was provided solutions in a previous thread How do I implement a clickable JavaScript map? using drupal_add_css() and ...
1
vote
2answers
476 views

create a custom field schema

When I create a new field programmatically, drupal create a default schema for my being added and for each new field added is create a new database schema. I noticed that the columns always have the ...
0
votes
1answer
395 views

Adding zip archives to the Document File Type

I have many PDF documents in my site, assigned to the Document File Type by the File Entity Module. I have added a few fields to the content type, thus allowing nice interface in showing all PDF ...
0
votes
1answer
741 views

Pagination isn't working

I have a homepage view called FrontPage. Currently, it shows the pagination link like "1, 2, 3 Next->" as it should; when I click on Next, it goes to http://example.com, not http://example.com/page/1/...
2
votes
1answer
22 views

Send email only if a field has a certain value

I am using webform in Drupal 7 and have a case where I need to send an e-mail only if a certain select field has an option selected. I have installed Rules and Webform rules but am a bit stuck on how ...
0
votes
1answer
22 views

Drupal form select not showing any options [closed]

I have created a form select with option values but options are not showing in the select element. Can any one please give me suggestion. $form['assets_type'] = array( '#type' => '...
0
votes
1answer
759 views

Table Pager Rendered in an Ajax Callback Shows White Page

I have the callback function below that renders a table with a pager. Every page of the table is 20 rows. Below is the code: function myid_print_all_submitted_id_callback($form, &$form_state){ ...
0
votes
1answer
595 views

Add radio buttons and text field together to theme-settings.php

I want to integrate a CSS switcher into my theme, but without the Color module. So I want a radio button list, (or a select list, or dropdown, doesn't really matter), with a list of different styles, ...
0
votes
1answer
350 views

EntityDrupalWrapper->value() causes infinite recursion on user login?

I have a few instances on my site where I perform actions on User Login. I create an EntityMetadataWrapper like so: global $user; $uw = entity_metadata_wrapper('user', $user); And then I go to ...
0
votes
1answer
478 views

Drupal 7 Webform Components Related To Individual Nodes

I am attempting to create a decision making "questionnaire" in Drupal 7. I am currently using the Webform module to create the questionnaire. The questionnaire (webform) will create a list of related ...
0
votes
1answer
737 views

Why are all files (except index.php) being redirected to 'index.html'?

We have a Drupal 7 Drupal Commerce site that we've just moved to our virtual private apache server, however we're seeing very strange behaviour that's making the site not work. We're getting a ...
0
votes
0answers
32 views

HTML elements in schema.org module

I am using the Schema.org module for schema tags, I tried to add html elements but they never get printed. Is it possible to do this?
0
votes
1answer
34 views

How to log to console when in a Drupal attach behavior?

I'm using Drupal 7. I have the following code that tries to log to the console: function mymodule_get_jquery() { $jquery = <<<JAVASCRIPT console.log("here"); (function($) { ...
0
votes
1answer
19 views

Update UI lists modules/themes that are already updated

I have a D7 (7.69) site. On both dev and production, I can update a module (using the web UI - /admin/modules/update), apparently successfully, yet afterwards, that module stays listed as requiring an ...
1
vote
2answers
639 views

How to display the output of my module without clearing cache and refresh page?

I created a very simple module which generates a tag cloud based on user input; you can see the code here. // wow.module function wow_menu() { $items = array(); $items['wall/of/words'] = ...
0
votes
1answer
350 views

In code alter user registration and override approval to no approval required

In my module I want to override the approval for certain users so that they are immediately approved and get the corresponding email. The module looks at the subdomain to decide if approval is ...
1
vote
1answer
552 views

How to apply (% off) commerce discount for second and next items only if line item quantity > 1?

Using Commerce Discount and Commerce Discount Extra modules there is no problem to set discount rule condition for product type and quantity. This way I can set up 20% off discount that is applied for ...
0
votes
2answers
546 views

Max allowed packet issue drupal 7

What causes max-allowed packet issue in drupal 7. We have set the max_allowed_packet size to 1024mb (1gb). Still we are facing the problem in quick intervals. Also dblog module is not working even ...
3
votes
1answer
443 views

Custom form values in hook_form_alter not available in custom validate function Drupal 7

I'm modyfing a node form to add a few extra fields. On submit, I need to program some extra logic to these values then save them to the node object. function module_form_alter(&$form, &$...
1
vote
1answer
587 views

Nivo Slider jQuery plugin Not installed

I´m trying to install Nivo Slider to my website. I was following this tutorial from the official plugin website. I have the folder "all" an inside it I have "libraries", "modules", and "themes". I ...
0
votes
0answers
14 views

Using rules to populate a node reference field

I'm trying to auto-fill an multi-value entity reference field on a node with all of the other nodes that meet a certain criteria (promoted on the front page in this instance) using the rules module in ...

1 2 3 4 5 526