Tagged Questions

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
5 views

same form multiple time in widget

I have a hook_field_widget_form where I call drupal_get_form multiple times. How can I remove the submit button on the form included by drupal_get_form, and only use the submit of ...
0
votes
0answers
7 views

modify password_reset or request_new_password?

When building a mobile app, and using services3 and/or my custom module, I have a specific requirement: I want anonymous users to be able to receive their password, in plaintext, in their email, if ...
1
vote
0answers
7 views

Drupal 7 - how to add custom field token to webform default value?

I want to add node-field data into the web from block via tokes as with Webform 7.x-4.1 this should work. But tokens from custom fields are not available in a webform(block) ? [node:title] and ...
0
votes
1answer
11 views

How to create a view mode preview within the display suite module

I am using Display Suite to create two new view modes within my D7 instance. They are: Wide Square I can get them created and and added to the content creation form BUT I'd like to create a ...
1
vote
0answers
6 views

How does Entity Translation module manage translation state?

I'm trying to understand how the Entity Translation module keeps state for entities. I understand that any given field will have translations stored on the actual fields, but there's also the ...
0
votes
0answers
4 views

Mime Mail + Previewable Email Templates Completely rewriting my html

We're using MIME Mail to send emails out of Previewable Email Templates The emails appear proper (ish) in the PET preview... and the code is saved correctly (when we edit it, our code appears as we ...
0
votes
0answers
7 views

How does Feeds decide if it is going to create a new (or update an existing) entity?

I am using Feeds to map a CSV file to user entities. Everything is going great, except for the Telephone field... as it currently stands, the Telephone module doesn't have support for Feeds. There is ...
0
votes
1answer
16 views

Define form for field_attach_form

I have an custome made entity function sbsl_order_entity_info() { $entitys = array(); $entitys['sbsl_delivery_information'] = array( 'label' => t('Delivery information'), ...
0
votes
1answer
37 views

Display node in multiple context

I'm using Drupal 7, and this problem have been tormenting me these past few days : let's say I'm using the basic content type Article, with basic view mode : full and teaser. Now I'm creating a ...
0
votes
1answer
15 views

Auto translate content of nodes

I am developing a Drupal 7 site, where i store the content of a cotent type(with several fields). So by default, i enter the English text for the content and save it. Is it possible in Drupal to ...
0
votes
0answers
14 views

SEO for hotel website (integration of another website) [on hold]

The website is for acommodation and i have worked a lot on SEO and it works good. Now i have offer from a company to integrate their base of 150000 apartements, hotels etc. through HTML, XML or ...
0
votes
2answers
30 views

How to block users to accessing Drupal website if javascript is not enabled?

I checked many pages in Drupal Answers, which didn't have the answer of the following question: Consider a case that I need javascript to be enabled for visual effects in drupal design. How can I ...
2
votes
1answer
17 views

How to make a reset form button without type 'markup'?

My situation: I built a form with FAPI. I display the results in a table like this: function grap_contact_repository_form_submit($form, &$form_state) { ... $form_state['results_table'] = ...
0
votes
0answers
24 views

Adding profile2 profile to panel in drupal7

I am building a social networking site with Drupal 7.32. I am using the Profile2 module for user profiles. I have added fields to the default profile type. Now, I want to display the profile on the ...
0
votes
1answer
7 views

create menu filter price product

salute you. I have one problem need your help. I want to create 2 menu list of product categories and product prices. there should be a link between two product categories menu to the product menu to ...
0
votes
0answers
16 views

Disappeared output of banner after updating from d7.31 to d7.32

I have set up a website using mamp. And it has a banner on the front page. I did a back up of files and database before updating. After I updated the core, banner has disappeared from the front page. ...
0
votes
1answer
31 views

Unable to return session value in views Field

I am storing a session value via Rules when the user is logged in session_start() $_SESSION['userkey'] = "12345"; Also testing it below there echo $_SESSION['userkey']; Although when I am ...
1
vote
1answer
22 views

How to output every second grouping in views?

I have a view that outputs a list of nodes and their taxonomy terms. I use taxonomy field as grouping field. So I get: Tax1 (article1, article2, article3 ) Tax2 (article4, article5, article6 ) Tax3 ...
0
votes
1answer
23 views

Update drupal modules without updating core in one drush command

Is there a way to update all contrib modules without updating core in one drush command. For example: drush up updates all modules and core. Is there a way to ignore core and just update the ...
0
votes
1answer
17 views

Enumerate content in custom view template

I am very new in Drupal. I am using Drupal 7. I would like to create a custom rendering for a view I have created. Thanks to many posts found on the internet I have already done the following steps: ...
0
votes
1answer
14 views

Embedding Views block in Body field makes Body field disappear

I have a block that I need to embed in a node's Body field. I've tried module_invoke() + PHP Filter, and I've also tried the Insert Block module. In both cases, whenever I embed a Views block, it ...
0
votes
1answer
12 views

“Preview before submitting” based on user role

So, you can make "Preview before submitting" optional or required for a node type. I would like to make it optional based on the user who is creating the node. So, for example, a authenticated user ...
0
votes
0answers
28 views

Why my query string generates page not found for my view?

In Drupal 7 I'm using a view export to download information for my orders. If i go to the default url /admin/commerce/orders then the page downloads correctly. However, I also have some filters so I ...
0
votes
1answer
11 views

Create referral url for user and add UID to hidden field when url used

I need to create referral url for authenticated user. This url should be url for webform, and it should include user UID. When user shares this url and someone uses it to fill webform it should set ...
0
votes
1answer
15 views

7Random ASCII chars in footer?

goes away when I clear the cache but comes back as soon as I visit another page. new standard installation (drupal 7.32) lighttpd + php 5.4 (fpm) mariadb
0
votes
0answers
6 views

Commerce Node Checkout free option skip cart/checkout/payment

I am working on a free/paid listing site. I setup Commerce Node Checkout with Node Checkout Expire and have a free version(14 days) and a paid "featured" option (30 days). The paid option should go to ...
-1
votes
0answers
20 views

ckeditor with content locking module

I am using content locking version 7.x-2.0 and ckeditor module version 7.x-1.16. It works well with firefox and chrome, But when I open any dialog boxes used with ckeditor e.g. link, table etc. IE ...
4
votes
2answers
121 views

Migration from Joomla

I am going to start work on a website that is already developed in Joomla 1.5 What are the possible ways to migrate the contents from Joomla. PS: I have looked into joomla module but no luck! Any ...
0
votes
0answers
43 views

Old hyperlinks are not accessible after migrating drupal 7

My old website was located at 127.0.0.1/drupal address. Now I have hosted in live server. The website have content with hyperlinks. See the below screenshot- All of the content is designed using ...
0
votes
2answers
27 views

How to create a single slideshow combining several image fields?

I have 3 image fields in a content type: img1,img2 and img3. img3 is multi valued while the rest are single valued, and I'd like to create a single slideshow containing img1, img2 and img3 to be ...
0
votes
0answers
14 views

Drupal Location: reverse geocoding city+country from lat/long

What I want is, when I fill out latitude/longitude in an address field in Drupal, a module hook to automatically fetch more address details. I only need city and country. What I did is install the ...
0
votes
2answers
21 views

Show total count of items on page created by views

What is it right way to show total count on views? I found this print count($view->results);
0
votes
0answers
12 views

How to access node arguments while making an ajax request?

I have a webform with a file upload field. When I upload a file in this field, without submitting the form, the file is uploaded using AJAX. Now, I want to make some modifications during this call. ...
-3
votes
0answers
30 views

How to filter Content page based on the category? [on hold]

I want to filter categories in Content to search for articles within specific category. How you can guide me to find particular?
0
votes
0answers
13 views

Simpletest: working with sessions and custom function

I need to add a simpletest case to my custom module. Module functionality: The module has a function to store data on $_SESSION, on the next page load if $_SESSION has a custom value a javascript ...
1
vote
0answers
19 views

Filter View by a Javascript variable that is frequently changed by mouseovers on same page

In Drupal 7.32, I want to filter a sidebar View block by a Javascript variable set by a mouseover on the same page, with the additional condition that the Javascript variable changes when you ...
0
votes
1answer
33 views

Nivo Slider lists up the images instead of sliding

I download this module with drush dl nivo_slider Then enable and automatically download libraries with drush en nivo_slider Then clean cache with: drush cc all Then enable in block. Then Firebug ...
0
votes
2answers
20 views

Title encoding to display correctly foreign characters

In my html.tpl.php file in the <head> tag I display the page title as follows: <title><?php print $head_title; ?></title> This displays the foreign characters not correctly ...
1
vote
1answer
39 views

How to find users with password same as their username

How do I find users which their password is equal to their username in Drupal 7?
0
votes
1answer
4 views

Apache Solr: get list of “More Like This” nodes programmatically

I'm using apachesolr module and it's "More Like This" block. This block displays only titles of similar nodes as links to these nodes. I need to display rendered nodes with specific view mode. How ...
1
vote
1answer
23 views

Removing write protection in Drupal installation

Just to prevent hacks, can I remove write protection in all files and directories in my installation, except for in sites/default/files ? I mean I want to chmod to 555 and chown them all to root.root ...
0
votes
0answers
16 views

Identifying site (v7.22) hack [duplicate]

I've just now received an email from the Provider about fake emails being sent my VPS account. I could find infections within my two Drupal sites. I've even found these lines in the error log of one ...
0
votes
1answer
14 views

How to validate deletion of custom entity?

I'm making decently complex system, where many entities are referencing each other, and I don't want to allow any broken references. That is why I would like to implement validation at entity ...
5
votes
4answers
111 views
+50

Is there any management utility for multi-site deployment?

I'm creating a multi-site instance for a client that makes heavy use of Webform. It's going to be a survey tool of sorts with a single base domain (no sub-domains) and a single SSL certificate. ...
0
votes
1answer
11 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
12 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 ...
3
votes
3answers
301 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
18 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
20 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 ...
4
votes
2answers
63 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 ...