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
1answer
7 views

How to show difference between views page and views block

I have created a view page, to this same page I will add a block by clicking on add button. So whatever changes I will do in the block is affecting the view page also. So how can I configure this, so ...
1
vote
0answers
9 views

How to embed a views page and views block in a page?

I want to show two views in a single page. I have created a view page and I have one view block. So how can I attach these two views. I followed this below url, but i didn't get the attchment option ...
1
vote
2answers
22 views

Creating a job portal system

I want to create a job system with the following workflow: Administrator can add the jobs. A page for job listings. On detail job there should a link of apply for this job. The form will contain the ...
0
votes
0answers
9 views

A server rule to deny client directly without using index.php [on hold]

I have this in .htaccess: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^ index.php [L] RewriteCond %{HTTP_REFERER} !^$...
0
votes
0answers
12 views

Day listing in colorbox or ctools popup

I am using calendar module and using calendar widget to show in front-end. Views has option to link title with colorbox popup. Here comes my obstacle I have multiple events in a day. When user clicks ...
0
votes
1answer
5 views

Which table contains all of the module permission data?

I'm coming into an existing project and the previous developer totally messed up the site. There was a custom module made for a custom field and it shows up in the People > Permissions page. I cannot ...
0
votes
0answers
9 views

cannot send email with image

I wrote a hook_mail function in my module. In the Mail System, I have tried "MIME MAIL", "HTML MAIL", "PHPMAIL" and "MIME MAIL- SMTP" as my default sending email method. However, none of them can help ...
0
votes
0answers
27 views

Adding jQuery plugin

I'm trying to use a jQuery plugin on a page to turn a table written in HTML into a bar graph. When I wrote the HTML and tested it from my computer, it works fine, but integrating it into the Drupal ...
1
vote
2answers
24 views

Add form field with AJAX

Here is the form: function payment_form($form, &$form_state) { $form['#tree'] = TRUE; // since credit card is also an option, the gift card section is contained in this div. $form['payment'...
0
votes
0answers
16 views

Redis Storage Session

Hello I tried use Redis with Session Proxy to storage anonymus user sessions, but I have some issue with hook_init(). I can't get session variables from hook_init() if I am not logged in as Drupal ...
0
votes
0answers
12 views

What is the best way to use AngularJS? [on hold]

So i am wondering what would be the best way to use angular.js inside of an existing drupal 7. I'd like to use it only on some specific nodes to display data. should i be writing a custom module or ...
0
votes
1answer
13 views

Unsubscribe users from Simplenews from a specific Newsletter category

I send newsletters from my Drupal-7 website using Simplenews module. I have a general category, that has all my site users and it is the category I use the most. Although, some of the newsletters are ...
0
votes
1answer
25 views

How do I add the edit link of a content in a custom view mode?

I have a content type (Sample) which includes a field (A) whose widget type is View. I'm using the Entity Reference View Widget View module for this. The output of this field is having only the ...
0
votes
0answers
12 views

How to add Recurring Subscription, Installment to payment gateway in Ubercart [on hold]

I am using ubercart-7.x-3.9, Drupal 7.43, ClickandPledge(Payment Gateway found at: https://github.com/ClickandPledge/uc_clickandpledge). I am a payment Gateway Developer for my company. Its being ...
0
votes
0answers
9 views

How to render oauth connector block in user--login.tpl.php?

How to render oauth connector block in user--login.tpl.php? I want to add social login into my website this is url of connector block /admin/structure/block/manage/connector/one_click_block/...
2
votes
1answer
26 views

How to set a checkbox using POST request with Services Module?

I am trying to set a checkbox in a display using a post request by setting the value of the mark field to 1, specifically field_mark_as_discounted. But I can't seem to be able to achieve that. Note: ...
0
votes
0answers
10 views

How to avoid regions overlapping in panels layout (or display suite) in Zircon Theme? [duplicate]

If a website window is scaled down by using mobile phones or reducing a browser window, some regions with fields in them (panels layout or display suite) start overlapping each other (they move onto ...
0
votes
0answers
10 views

How to embed image in MIME mail

I used MIME Mail module to send my email. Right now, I would like to embed some images in my email. In my module, I used following code: $body1[]='<img src="https://upload.wikimedia.org/wikipedia/...
-1
votes
0answers
21 views

Why does taxonomy schema structure differ between Drupal 8 and 7, then how to migrate Tax to Drupal 8?

I'm new to Drupal 8 but used to Drupal 7 when I try to migrate sql data from Drupal 7 site to Drupal 8' one it fails beacuase of the difference in structure of the table taxonomy_term_data Drupal 7 : ...
0
votes
0answers
6 views

Reservations module: Confirm reservation email

I'm using the Reservations module to control certain resources. I'd like to send an email to the user who reserved the resource when it is confirmed. I also installed the Reservations email module ...
0
votes
1answer
12 views

How can I let users create new drafts for existing content?

We have two roles of user: Admin's and Content Creators (basically Authenticated with a few more permissions to create content). We'd like to have Content Creators be able to create new drafts from ...
1
vote
0answers
12 views

Views 3 - Add wildcard or “contains words” to contextual filters

I setup a basic contextual filter in Views 3 and currently I have it pass in a field called "office" which is set by the $user. I have many different offices in my results with the string "new york" ...
2
votes
1answer
18 views

How to hide input from user inside a textfield

I need text inside a textfield FAPI form element to be obscured visually, just like the password field when you type into it. password FAPI form element does not have proper functionality for what ...
1
vote
0answers
20 views

Workbench unpublishing nodes

I'm trying to understand Workbench for Drupal 7. We have a role called Content Edtior that is able to create drafts of new content and new drafts of existing content. Our trouble happens when ...
1
vote
1answer
18 views

Display terms in relation to the terms of the page

I created product sheets related to the terms of taxonomy. How to display a block of view, the products in relations with the currently visited page? For example if my page is linked with the term "...
0
votes
1answer
18 views

how to use token in “Execute custom PHP code” in a rule

I used "Execute custom PHP code" in my pricing rule. However I got Notice when I checkout: Notice: Use of undefined constant testsku - assumed 'testsku' in eval() (line 7 of /var/www/jmu/sites/...
0
votes
0answers
7 views

Taxonomy Term description in views when “no results” (Haven't associated nodes)

need help with Taxonomy Term description when no results in views. I'm using Drupal 7.44 / Views 3.14 and render content from node teaser template without using fields, and for showing description ...
2
votes
1answer
25 views

How do I implement the following user profile verification?

After the user fills the registration form, if the profile is appropriate, the administrator user approves it, and the profile goes live; if it is not appropriate, the administrator user will reject ...
1
vote
2answers
36 views

Setting import to run every 15 minutes

I am using Drupal 7.43, and I want to read my data from an external database every 15 minutes. My site is hosted on an Ubuntu server. I am using Feeds importer with SQL parser. From import/...
0
votes
0answers
9 views

Why do I receive only 4 of 5 mails sent with the contact form?

On my D7 site, I use the default contact form. Every now and then, the website owner tells me, that he has not received mails sent by clients via the form - but when I tested it with some mails, we ...
0
votes
0answers
8 views

How to show auto archived content in auto archive module

I have a requirement of archiving the blogs. So I have used auto archive module,with this module I will get archive option while adding contents. But my question is how can I show these year-wise data ...
1
vote
0answers
16 views

entity_privatemsg_message

Working on a Android APP to read/reply private message (Drupal 7). I am able to access all secure information for a user. Services/Resources> works file. shows the entities But I am facing some ...
0
votes
0answers
15 views

Heartbeat module crashes the site

I tried enabling the heartbeat module on drupal 7 and as soon as I try to enable it from module page the site returns a blank page. Is anyone facing the same issue with this module or an alternative/...
0
votes
0answers
11 views

Form ajax add more button added via another ajax callback not working

I have a form button which I want to add another field with another button on that form( I am able to do this) but second button is not clickable. Any idea. Following is my code- This is my form code-...
0
votes
0answers
16 views

PayPal Recurring Payment - Drupal commerce [on hold]

I am using Drupal Commerce and the payment gateway needs to be in paypal recurring method for the user subscription. I have tried with both the Commerce SP PayPal and the Commerce PayPal modules. But ...
1
vote
1answer
32 views

How to save the definition of an entity?

I am trying to figure out if there is a difference between saving an instance of an entity and saving the definition of an entity. My use case is this: I wrote a small module that defines an entity, ...
0
votes
0answers
13 views

View menu routes missing until first page load

I having an issue with the install logic of a custom module. I am attempting to add menu links (using menu_link_save) that link to a view that is defined in my module (using HOOK_views_default_views)....
0
votes
0answers
6 views

D7: Simple LDAP & Rules modules - do they work together?

I have Rules and Simple LDAP modules instead in an D7 site and I want to know if they work together based on this rule: If a new account is saved, then assign it to a role. Right now, when a user is ...
0
votes
1answer
15 views

How do I update multiple rows in one single function call?

I want to update multiple rows in one query, for example as with the following code. db_query("update bestsellers set count = 4 where product_id = 30; update bestsellers set count = 5 where ...
-4
votes
2answers
50 views

Is my code valid and how does it relate to the coding standards?

How does the below piece of code relate to the Drupal (7) coding standards? Notice that the function is not returning anything. $a = foo(); function foo() { // Doing everything except returning. ...
0
votes
1answer
14 views

Different theme of Media module audio player in Firefox and IE and chrome

I installed Media module, and there is a content type for audio files. The Manage display of the audio field is Audio. But the player has different themes in different browsers. This is what Firefox ...
0
votes
1answer
22 views

ReferenceError: jQuery is not defined in custom module [on hold]

I am hiding some form elements in my custom module, but jQuery is not loaded in my node page. jQuery(function($) { $("#edit-field-program-event").hide(); $("#edit-field-program-type").hide(); })...
0
votes
0answers
4 views

User Relationship: Independent mail template for each relationship type

Using user relationship module I have created 2 relationships Friends Event Invitation So far so good, however when I tried to change the email template for the Event Invitation it took me to the ...
3
votes
3answers
47 views

How to generate URL alias without %20 in URL?

We have a custom field that is being used to generate the URL alias. One issue we have found is that when we set the page to "Autogenerate URL Alias" and set the URL pattern to "[node:...
0
votes
0answers
12 views

Issues importing nodes containing taxonomy terms with &/&amp; using feeds

I have a view that outputs XML either on screen (using Views Datasource) or a file (using Views Data Export), and I'm attempting to import the data generated by the view using the feeds module. The ...
1
vote
1answer
18 views

block['content'] text with form

I created a form and used a block to show it. I would like to add a message before the form. Before I added "You can use the form below," the form was working fine. Right now, it doesn't work. The ...
3
votes
0answers
23 views

How to sort view search results by giving custom relevance weights?

I am using Drupal 7.43 and core search module. I use "Search: Search Terms" for filter criteria and "Search:Score" Sorting criteria in my view to sort my results according to relevance. But, for ...
0
votes
1answer
18 views

How to map views url to blog url

In my site I am using blogs module. When I used sitename/blog default blog page will display. But my requirement is, I have created a view to display the blogs, this is on the path of sitename/blog-...
0
votes
1answer
13 views

How do i get views field labels in the template file

I am creating a view, and displaying view by using custom template files. As per theme suggestions I named the template file for fields as views-view-fields--blog-display--page.tpl. In this file I ...
1
vote
0answers
40 views

how to filter view content by field value?

I have one content type (article) and in that I have created field "Article category" which is Term reference. I have created a view page where I am displaying (content title, Article category and ...