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)

-2
votes
0answers
10 views

Why Akamai is better than CDN cloudfront [on hold]

I wanted to know why CDN AKAMAI is better option for Drupal, I am already using CDN Cloudfront and I was planning to move to AKAMAI. How to do the comparison between these two in Drupal ? I need to ...
0
votes
0answers
14 views

How to read a Entity reference node's fields?

I had a field using entity reference in my site. I'm trying to develop a module can read/use it. $wrapper = entity_metadata_wrapper('node',$node); dpm($wrapper->myRefField->getPropertyInfo()); ...
0
votes
1answer
14 views

Display formresults in same block as form

I have created a module that writes a block with a very simple form in it. The purpose of it is calculating distance between 2 adresses, one fixed, one asked by the form. Now I can't get the ...
2
votes
2answers
31 views

How do I post a node that has its created field set to the past in a test class?

I am creating a test class using the framework of the core Testing module for a module that is supposed to autoexpire nodes some time after they've been created. Nodes have two timestamp fields: ...
0
votes
0answers
10 views

How to show a node but return HTTP 404 response

I want to show an existing page(node) normally but return a HTTP404/410 etc instead of HTTP200. How can I do it? Is there any simple way to do it?
-1
votes
0answers
10 views

Menu link content number display

How do you make a Menu link to display the number of contents it has e.g. Cars(40)? I have looked through all the help topics but still can't find away to achieve this.
1
vote
0answers
18 views

drupal_static_reset causing errors

I have developed a custom template for a node where I wanted to essentially show the node in a blank white page. I created a file called node--results.tpl.php and page--node--results.tpl.php that ...
0
votes
0answers
8 views

Getting the auto generated thumbnail of the video Using MediaFront and Views

Ok here what's the situation I have, I made content-type of Products with 2 fields: Image field and Video field with unlimited inputs. Using MediaFront module and Views I made a block for ...
0
votes
0answers
36 views

Can't update drupal core to 7.27

I'm tring to update using drush, with the command drush up, but core is not updating. it says on the drush output: Project drupal was updated successfully. Installed version is now 7.27. but it's ...
-1
votes
0answers
21 views

Let Users submit a hiking track which is shown in a map?

I need to show Hiking tracks in a map on my site and additionally let the User insert their hiking track suggestions. Is there any way to achieve this? I have the GMap module installed and its ...
0
votes
0answers
8 views

How do I pass a list of arguments to a VBO view?

I'm writing a rule that will ultimately email users when relevant content has been published, but having trouble fetching my list of users. Basically: I have a content type of RFP (request for ...
0
votes
0answers
7 views

Buying store credits with ubercart

I'm searching for a solution to setup a credit-products with Ubercart for my SaaS hosted on Drupal7+ Ubercart. User can buy credits/points through Ubercart that can be use in the SaaS. I was thinking ...
1
vote
1answer
19 views

Difference between hook_node_view() and template_preprocess_node() with seeing messages

When I add a form to a node's render tree using hook_node_view(), eg <?php /** * Implements hook_node_view(). */ function MODULE_node_view($node, $view_mode, $langcode){ if ($node->nid == 9 ...
0
votes
0answers
9 views

Broken URL on node teaser code

I want to print node teaser in a block. As discussed here: How to programmatically render a node's teaser using the theme layer? I've used this code to get the html code of teaser: $node = ...
1
vote
1answer
23 views

Does storing my database as a .sql file in my site git repository cause problems?

I have been saving a series of database export files each time I do a git commit of my Drupal site. I have a nice git repository for my site files and a messy folder for my database backups. Because ...
0
votes
1answer
12 views

How to get the managed_file progress bar working in a custom theme?

I'm trying to get the managed_file progress bar working in a custom theme. Right now, when I start an upload, the empty progress bar widget appears in the form, but it doesn't visually update while ...
0
votes
1answer
34 views

How To Change The $tid to $term_name

I've tried to change this code to show the term name instead of the term ID but now no term name or term id show at all Orginal code for term ID function MYTHEME_preprocess_node(&$vars) { if ...
0
votes
1answer
17 views

Any module or way to add line item in existing order?

Is there any way so that admin or whoever permission can add the line item in existing order while editing the order? Any module or custom code?
0
votes
3answers
31 views

How do I add a class to HTML bookmarks generated by core?

I'd like to add a CSS class to HTML bookmarks generated by core. Examples of these bookmarks include: <a id="new"></a> <a id="comment-766013"></a> I'd like to turn them ...
1
vote
1answer
46 views

Can I get a upload progress bar when submitting the form with “submit”?

In D7, I've got some forms that are responsible for uploading potentially large video files via managed_form fields. My server is properly set up for showing uploadprogress (or seems to be, according ...
0
votes
0answers
13 views

Use AJAX to replace contextual element on response?

I have a MENU_CALLBACK defined. If the callback was processed via AJAX, I ensure an array of commands is returned like so: $commands = array(); $commands[] = ajax_command_replace('selector', ...
0
votes
0answers
15 views

Is there a way to set up an OR relationship through contextual filters?

I have a view that displays nodes which contain a user field (entity reference.) The view will be filtered based on the: the currently logged in user. I want to display nodes that are either created ...
0
votes
0answers
23 views

Is there another module to auto refresh a page besides Views Auto-Refresh?

I am currently using the Auto-Refresh module to build an page that stays up-to-date, without needing to be reloaded. However, this module will not cooperate with Features. Is there another module or ...
0
votes
1answer
11 views

Drupal 7 Captcha on the user_login_form and user_pass form?

just checked on my site and it seems that certain login forms do not have captcha. specifically the form named: user-login-form user-pass I put in user_login_form in the captcha page to make it ...
1
vote
0answers
20 views

Migrating a Drupal 7 domain to another domain while keeping dynamically generated URLs intact?

I currently have a website that does repairs and web development. I want to separate the repair section of the website into its own domain name while also keeping the old domain's URLS intact. Since ...
0
votes
0answers
26 views

phpMyAdmin not working while using xampp [on hold]

While trying to install Drupal 7 on my PC, it asked me for an existing MySQL password for xampp. After some search I figured out this is a password you use when you register using the phphMyAdmin ...
1
vote
3answers
83 views

Non blocking drupal_http_request

I am trying to integrate with a third party API using REST. I want to make a few calls to the API without waiting for the result to be back (The calls are action calls ie they perform some operation ...
0
votes
0answers
17 views

View of users sort by number of orders referenced to each user - drupal 7

I have added an entity reference field to my shipping address so as to use the Entity Reference Count module to count the number of orders referenced to each user on the site (that is, the number of ...
-2
votes
0answers
25 views

How to disable caching completely in Drupal 7 [duplicate]

This question has been asked numerous times before but I am not satisfied with the answers. The previous answers focussed on how to clear and rebuild caches easily, but that's not what I need. I don't ...
1
vote
2answers
52 views

How to get the drupal version using phpMyAdmin query?

How to get the drupal version using query ? Or how do we detect using query the drupal version is 7,6,5 or 4?
-4
votes
1answer
33 views

Geting url values

I am new in Drupal. I have created a static html form inside the div and posted the values using GET method and when I try to print the get value using $postcode=$_GET['postcode'];: Notice: ...
0
votes
1answer
26 views

Scrape articles from one Drupal site to other?

Let's say I have already a Drupal website that has lots of articles and etc. And now I want to build another Drupal website under different domain, and when new article is added to the old site it ...
0
votes
0answers
19 views

Unable to edit new custom entity column values added to existing entity schema

I've added a new varchar column via a module update to an entity. The new entity property's default value displays for existing records on forms but changes are not saved. I say "forms" because there ...
1
vote
1answer
15 views

When using Rules, does a page refresh happen immediately if the event is set to 'Drupal is initializing'

I have several views pages set up on my site that filter the content that is shown to normal visitors. In general, these views will show users content that they have created. However, when an admin ...
0
votes
2answers
32 views

How do I create a page (with a url) that displays only views blocks

I have been using views to create all of my pages. I am wondering if there is a way to set up a page (with url) that is initially blank. I want to use context to place view blocks on this page based ...
0
votes
0answers
11 views

Getting token values from user accounts

When a customer creates a account on my website, he fill out a First Name field on his profile. The machine name for this is "field_fornavn". Can I get this field value as a token when the users ...
0
votes
1answer
13 views

Is there a 'text or user reference' module?

Currently, I'm planning on using a text field for full names (added fields field_profile_full_name and field_profile_partner) on user entities, so that one user can link to another. However, I might ...
2
votes
1answer
39 views
+250

Can local actions have multiple parents?

I have a module that I am working on that defines some local tasks and local actions for node pages, eg $items['node/%node/foo'] = array( 'title' => 'Foo', 'page callback' => 'foo', ...
0
votes
1answer
14 views

is the a module similar to data_export_import that includes user roles?

I am using the Data Export Import module to migrate data from my live site to my dev site. It works fine in all cases except user roles. For some reason, many (but sometimes not all) users lose the ...
0
votes
0answers
10 views

How to sort product displays by price using search api sorts?

Actually I want to do the same behaviour as in commerce kickstart 2 for sorting my products by price. I'm using search api, search api db, search api sorts, search api ranges, commerce search api ...
1
vote
0answers
28 views

Notice: Undefined offset: 1 in drupal_http_request()… common.in

I have installed Drupal and I am getting the following Notice messages: Notice: Undefined offset: 1 in drupal_http_request() (line 989 of ...
1
vote
1answer
23 views

Is there a way to force some block caching despite system block caching option is disabled?

In /admin/config/development/performance settings page, my "cache blocks" options is disabled due to "Block caching is inactive because you have enabled modules defining content access restrictions." ...
0
votes
1answer
15 views

How to find the name of changed file in Forms API

I've a file field attached to a node form. I want to know in the submit handler if the file has been replaced then I'll take some action. For example I delete the previously uploaded file : abc.txt ...
0
votes
0answers
16 views

Add custom classes to modal popup

I am using Ajax Login/Register module for Drupal 7 for creating modal popups for login and registration. I am using bootstrap theme as parent. I want to customize login and registration form ajax ...
0
votes
0answers
12 views

Increase file upload size on Windows server? [on hold]

I am working on a site that is running on IIS 6.0. I'm pretty unfamiliar with that as I'm used to Apache. I've been trying to add some stuff to the web.config file to increase the limit but nothing ...
0
votes
0answers
7 views

Installer looses theme after task which does module_enable()

I know that using module_enable() in custom task is strange. The best thing to do would be to enable my module by adding it to the .info as a dependency[]=. The reason I'm not doing that is that I'm ...
1
vote
2answers
49 views

How to ONLY display an image in the teaser for Drupal 7

I'm currently using a modified version of the Stark Theme, customized to what I need, on this site tobyNews. However, following some new design inspiration, I've decided that instead of showing text ...
0
votes
1answer
19 views

Create two views this the same url and different permissions

I would like to build a set of views, all of which use the same url. I also want to set up role based permissions for each one so each users get routed to a different view when they visit the url ...
0
votes
1answer
28 views

Image style not loading on first load

I have images of a certain image style that only show up after reloading the page. I can see the image created in the style directory after the first page request. Its like the browser is not waiting ...
0
votes
0answers
35 views

An illegal choice has been detected. Please contact the site administrator in views exposed filters

I am using filter criteria in views for displaying data based on the input selected by the user. Actually the drop down values in filters are node values of two content types.When I add content to ...