This tag is for questions regarding Drupal 7 specifically. Version tags should be used only when strictly necessary, for questions that apply to Drupal 7 only, and not to merely say "I am using Drupal 7 in my site."

learn more… | top users | synonyms (1)

0
votes
0answers
7 views

Make tokens expire

Am working on an Organic Group use case where a user can join a group using a one time invitation link sent by email. How do i make the token attached to the email link expire once its used so that ...
0
votes
0answers
9 views

How to change order state when user cancels payment

In Drupal Commerce, when the customer has been redirected for payment, the order state will be set to Checkout:Payment, and the cart will be emptied, hence the user cannot change his mind by pressing ...
2
votes
2answers
269 views

Risks of developping your own theme from scratch?

I read several answers about "Is it better to develop your own theme from scratch or extend a existing one?". Here is my situation: I just got an existing project and I have to debug it and evolve ...
0
votes
0answers
17 views

remove a drupal select list option from a node add form [on hold]

Can i remove a drupal select list option from a node add form, but will stay on edit form having that option selected using hook_form_alter. thanks in advance
0
votes
0answers
16 views

problem with Single Page Website module

I wanted to try out the Single Page Website module for Drupal 7 I followed the instructions and all seemed to work well, except my anchor links wouldn't work i.e. it wouldn't scroll down the page ...
1
vote
2answers
17 views

Adding a views block to a menu? Or adding a menu to a views block?

I need to create a dropdown menu which consists of the menu items and also a views block of recent nodes. Yes this is technically a megamenu, but how would one build it without a megamenu using only ...
3
votes
1answer
36 views

Drush updates core successfully to 7.32 but is still 7.31

I'm developing a site on Drupal 7 and using drush 7.0-dev to keep the core and modules up to date. I've run drush pm-update several times successfully in the past, until Drupal core version 7.32 came ...
0
votes
0answers
43 views

PHP Fatal error: Call to undefined function entity_crud_get_info() in #########\docroot\sites … in xxx/modules/entity/entity.rules.inc on line 96

I am getting the above error whenever I install the module. The above errors keep occuring on every page. How can I debug it or solve it? I am clueless and working for a solution Any pointers would ...
0
votes
0answers
15 views

Cannot replace html.tpl.php with new template in a single module

I am creating a module to handle the reformatting of pages for printing in D7. The structure of the URL is: /print/{nid} I need to use a separate template than html.tpl.php as I have to get rid of ...
0
votes
0answers
19 views

How to Include a php file in a block from a custom module? [on hold]

I am new to Drupal and PHP. I am trying to create a module that when activated creates a page, then creates a block, configures block to only show on the created page, and then display an included PHP ...
0
votes
0answers
20 views

Render 2 pagers for 1 view

I have a view with paged output, AJAX enabled. I need to display 2 pagers on same view page: Load More pager (provided by views_load_more) and Full pager (default one). Something like this: How ...
0
votes
0answers
4 views

Solr's “more like this” block doesn't appear on every content type

I've successfully installed solr on D7 which I'm using several content types. More like this block shows on one of the content types but not with rest. With a surprising exception of last two nodes on ...
0
votes
0answers
10 views

Drupal form placeholder [duplicate]

I made a form using the custom module "homepage_userlogin". I want a placeholder in my form. The code of the custom module is: <?php function homepage_userlogin_form($form_state){ $form = ...
0
votes
0answers
17 views

insert field add to cart form

I installed the Ubercart module and created a custom content type, "product". I go to store => products => manage classes and add a class for content type "product". Then I display field add to cart ...
0
votes
2answers
9 views

Printing a form inside a block

I have a specific block that has some form logic, intended for newly registered users. And I am a bit lost on what the logic would look like to render the contents for the form inside a ...
0
votes
1answer
7 views

Add a Module Form to a front page region

As the title reads, I'm attempting to add a custom made module (simple contact form) into a region on my front page (this may be used other places as well, but for not just the front page). Could some ...
5
votes
1answer
125 views

How does CSS and JS aggregration work in Drupal?

When Drupal is set to optimize JS and CSS, it creates the 'js' and 'css' folders in your public file system root. Aggregated JS and CSS get stored in these directories. I've tried to figure out how ...
0
votes
0answers
6 views

How to display taxonomy term reference field as a rendered entity?

I have taxonomy term reference field which are displayed as checkbox. Each taxonomy term has two fields 1. description and other 2. price I want the description and price field to be displayed ...
0
votes
0answers
19 views

/user/ page access denied [on hold]

Out of nowhere I cannot login via /user page anymore, now I have to go to /user/login to get to login form. And even after logging in (as admin user id 1) admin end all works, but if you go to /user/ ...
0
votes
1answer
20 views

How to get flag count for any time period

I have View which displays a list of nodes with counters (flags), but the counters for all the time. How to display a list of nodes with counters (flags), for example, over the last week or last ...
0
votes
2answers
35 views

Drupal 7 - load view programmatically

How do I load a view programmatically passing a language attribute? Tried with module_invoke and views_embed_view but none of them worked; Data is returned but not filtered by language; Please ...
1
vote
0answers
12 views

Is it possible to build a form with jQuery and still use ajax elements and Drupal 7 Form API?

I have a form built using for the most part many ajax elements within the form api. The form is working if a user is going through it at a normal pace however as this is to be a productivity tool, any ...
0
votes
0answers
18 views

Unable to set field collection field value on form validation

The question might look similar to How to form_alter fields attached to an unlimited field collection? but I am more concerned about "values not saved after custom validation" I have a field ...
0
votes
0answers
10 views

Custom search results usign Search API + views

I am currently using Search API for indexing my content . I use Views for displaying search results and Views exposed filter for search form. In the search results page I use facets to filter based on ...
1
vote
0answers
11 views

Add where condition in hook_views_data with join?

I want to join my custom table with node fields. In my custom table there is a nid field for which I have used join and another is uid field for which I want a condition where uid = current_user_uid. ...
0
votes
0answers
9 views

Send mail with drupal_mail and hook_mail with mimemail enabled not working

I have this code for send a simple notification email function mymodule_commerce_checkout_complete($order){ $buyer = user_load($order->uid); if(in_array('wholesale', $buyer->roles)){ ...
0
votes
1answer
15 views

Illegal choice error in views exposed filter select list

My question is related to Drupal 7 Views Exposed Filter - How to Select all Taxonomy terms Upon adding new terms? however I have a different problem. I want to filter a view by users of specific roles ...
0
votes
2answers
16 views

'path' in array with special characters using imagecache

I have a folder in my sites/default/files directory filled with product jpg's gathered from an external server and back end stock take system. The files look like this... Bread.jpg Bakery.jpg ...
0
votes
1answer
18 views

Get Instagram realtime count likes

Here is how the application is structured: A cronjob runs every 3 hours making the Instagram Recent Media call -https://api.instagram.com/v1/tags/myhashtag/media/recent?access_token=ACCESS-TOKEN If ...
0
votes
0answers
21 views

Migrate from Drupal 7 to Drupal 8 (NOT 6) [duplicate]

I've read about migrating from Drupal 6 to Drupal 7 but I can't find information on how to migrate drupal 7 to drupal 8. The only things that I've seen is how to migrate a MODULE to Drupal 8. But ...
0
votes
0answers
27 views

How to include a PHP web file into the content region. from a module

I am new to Drupal and PHP. I am trying to create a module that when activated creates a page, then creates a block, configures block to only show on the created page, and then display an included PHP ...
-1
votes
0answers
16 views

Drupal Netforum Integration [on hold]

I am working on integrating the Drupal Netforum and the Netforum Authentication modules. I was able to add the credentials in for the Xweb endpoint and username password in the Netforum module. This ...
0
votes
0answers
11 views

Drupal local development environment indicators [duplicate]

What are some ways to mark a LOCAL development site just sow you know your working on a local? Reason for this is when im working on local and i also have my staging site up on my browser, it can get ...
0
votes
1answer
7 views

Is it possible to exclude module settings when migrating database?

Our dev server is on an internal network that is not connected to the WWW. As such, I have the Google Analytics module turned off on the dev server, because it really slows down page loads when ...
0
votes
0answers
3 views

What is needed for hook_field_validate to work on custom fieldable entity?

I created custom, fieldable entity, let's call it "myentity". I created myentity_form() and myentity_form_validate(). As it is explained in comments in hook_field_validate() documentation, I added to ...
0
votes
0answers
8 views

Workbench Access

I am new to Drupal altogether and have a question about a site i was asked to work on. We think that Workbench Access will solve our problem but we have not yet figured out how to make it work the way ...
0
votes
2answers
21 views

Action when a comment has been replied to

I have a unique case where we need to do something, namely a behavior where a user Comments on a node, and when a new comment is made in response to him, we need to "alert" the user in a variety of ...
0
votes
0answers
8 views

Broken hierarchy when putting views from code into management menu

I have hook_menu() with: $items['admin/bonds/pages'] = array( 'title' => 'Pages', 'description' => t('Views of bonds components.'), 'page callback' => ...
0
votes
2answers
46 views

Enabling a module leads to memory exhaution. Where to look for?

I have developed my little module for Drupal 7 and it has been working fine. But suddenly it started to cause a memory crush. Now I can't even enable it (drush en ModuleName) with the error message ...
0
votes
0answers
21 views

How to add a confirmation dialog for a submit button?

There is a submit button in a form: $form['submit'] = array( '#type' => 'submit', '#value' => t('Submit'), '#submit' => array('_shoes_submit_cart'), ); I'd like to popup a ...
1
vote
1answer
20 views

Render tokens in hook_node_view

I am creating the following pseudo field in hook_node_view: function user_guides_node_view($node, $view_mode, $langcode) { $node->content['field_mytest'] = array('#markup' => '<p>This ...
0
votes
1answer
28 views

Drupal Commerce: Can I split payment over multiple credit cards?

I need to enable my customers to be able to split payments over multiple credit cards. Is it possible with Commerce, and where can I find documentation to that end?
1
vote
0answers
15 views

Use ajax not working in views block displayed programmatically

I have a view with a block display. In the "OTHER" area of the view settings, I checked "Use Ajax". I display this block programmatically inside a node in this way print $view->render('block_1'); ...
1
vote
1answer
14 views

How to change the referenced entity field value?

I have a node that has a node reference to another content type. What I want is to update the referenced node field value on updating the node; Let me clarify the issue. For example I have a node of ...
-2
votes
1answer
21 views

Can I clone a cinema website's seat selector, using contrib modules?

I'd like to clone the functionality you get on many cinema websites, where it shows you the seating plan for the cinema and lets you pick a seat. Seats that have already been booked are in one colour, ...
0
votes
0answers
10 views

Duplicate entry/Contraint violation 1062 in file_managed on browser crash

I'm using Drupal 7.28. Today when I tried to upload some 100 image files in Image field type, it aborted in the middle saying that "20 MB" limit reached. Now it wouldn't even show me way to delete the ...
0
votes
0answers
8 views

Entity reference use a view with a parameter

I have a Entity Reference field (call this BAR) in one of my content type (call this XYZ). In this content type I have another field (call this "FOO"). This field (FOO) is also present in the content ...
0
votes
0answers
14 views

Using form api autocomplete to return content of a specific type from all groups (orgainic groups) a user is a member of

How do I add a form element which would reference a large (>200) list of nodes of a specific type, that either belong to the user or are shared with the user in the Organic Groups that the user is a ...
0
votes
1answer
27 views

How to add multiple taxonomy term to a single node in drupal 7?

Using Taxonomy terms auto-complete wizard I can able to add one term to the a node. But I wanted to add multiple terms to a single node? Is it possible? If so, is there any modules or plugins or any ...
0
votes
1answer
9 views

REQUEST_TIME is in GMT eventhough site timezone is IST

In admin/config/regional/settings I can see that IST timezone is set. But when I print REQUEST_TIME constant I see GMT one. How to get the IST time in REQUEST_TIME ?