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

There are currently @count users online translation issue

The following string is the default English translation source of the "Who's online counter" There are currently @count users online My site has Arabic language translation. When I tried to ...
0
votes
0answers
3 views

How to render ctools_custom_content_type_edit_form with ctools_modal_form_wrapper()

I have a scenario where I would like to reload/re-render the ctools_custom_content_type_edit_form after closing another ctools modal. To do so, I've bound an ajax object to the .close element within ...
1
vote
1answer
9 views

How to hide my hook_menu items from the navigation menu?

I've got a custom module which I use to define some urls that are used for a json api. I don't want them to show up in the Navigation menu. How do I change my hook_menu configuration so these urls are ...
0
votes
1answer
9 views

Unpublished node in menu

I have a content editor who is building out a section. All the nodes are yet unpublished. The problem is unpublished nodes are not displayed in a menu. While this is correct behavior with a user ...
0
votes
0answers
9 views

Can't delete entities, using entity_delete_multiple

I was studying, how to work with entities: http://www.bluespark.com/blog/drupal-entities-part-3-programming-hello-drupal-entity I downloaded the module, created by the author of that article. Then I ...
0
votes
1answer
14 views

feedback for duplicate registration attempt

if a user tries to register with a username or email that is already in use, there is no feedback telling them this, it just highlights the form field red, this is quite a bad UX. How can I add ...
0
votes
1answer
22 views

How to programatically update existing user profile field in drupal 7

We are using Drupal 7 and the Profile2 module. We create and add a value to a field in the profile using this code: $profile = profile_create(array('type' => 'main', 'uid' => ...
0
votes
0answers
20 views

Drush doesn't detect drupal installation under sites sub-directory

I have been using Drush 4 and 5 with no problem. Now that I have downloaded and installed new Drush 7.0-dev using composer, I am having problem i.e it doesn't by-default detect drupal installation ...
0
votes
0answers
6 views

managing variables in rules

I came across an issue with a very simple task using rules variables (maybe because I'm used to programming context). I wanted to create a coupon for commerce, those coupons only can be configured ...
0
votes
1answer
10 views

Drupal 7 CKeditor always saves Array

I am developing a custom module with some entities inside. I created a form to edit them and I would like to use CKEditor in one of the fields. I can see and use the CKEditor, but when it's time to ...
0
votes
0answers
12 views

Drupal 7 Views Image Field Default Image Not Displaying

I am trying to make a view using fields to display a default image that I set in Manage Fields of the Content Type. Is there any way to do this or do I have to hack views or maybe just some workaround ...
0
votes
1answer
10 views

How to turn of panels in-place edit bar

I know this maybe a silly question but how do you hide panels in-place editor bar?(The bar that has layout adjustment buttons.) I found a post that said there's a on/off setting on general settings ...
0
votes
0answers
7 views

Configure Menu block visibility based on URL and a User field

First, I have a content type: Department Additional content types: Post, Article, Event, etc. using Node Reference (Reference From URL) User have Entity Reference (Department) [field_department] ...
0
votes
1answer
13 views

How to add value in to multiple value field (entity reference)?

Im inserting into user field reference to other users. This is my code, but it is overiding all values of field, i just want too add value and keep values added before. <?php global $user; ...
0
votes
0answers
4 views

Term description and field_attach_update()

When I programmaticaly change term fields and term description, I can save changes by calling taxonomy_term_save($term); But if I don't want to save the term itself, only changed fields, I want to ...
1
vote
2answers
35 views

Auto-collapsing fieldsets on user_profile_form

I am following these guides: Customize the User Edit page in Drupal 7: https://www.drupal.org/node/2279959 Collapsing default fieldsets (Drupal 6): https://www.drupal.org/node/733198 Basically, I ...
0
votes
0answers
30 views

How can i add value to multivalues field? (programatically)

is a way how can i add value into multivalue field, on the end? Exaplme: My user have multi values field whose will contain references to other users like "friendship". Now i will insert there ...
0
votes
1answer
30 views

Fatal Error when trying to log in DRUPAL

My Drupal 7 website is throwing 500 internal server error, when I try to log in as Admin. I checked the apache error log it throws below error PHP Fatal error: require_once(): Failed opening ...
-1
votes
1answer
15 views

Need Separator image for views ticker content? [on hold]

I am using Views Ticker module for display the news in my site. It's perfectly worked for me. I want separator image for one content to another content.
0
votes
2answers
23 views

Complex condition drupal query

I'm trying to add following mysql condition: WHERE DAYOFYEAR(curdate()) <= DAYOFYEAR(DATE_ADD(FROM_UNIXTIME(field_birthday_value, '%y-%m-%d'), INTERVAL (YEAR(NOW()) - ...
0
votes
0answers
26 views

Images not shown in View Mode Teaser

I have a content type teaser with an image field and display these teaser in a panel layout. This works perfect if I choose the Build Mode "Full Content" in the Panel Settings for the content. I ...
2
votes
1answer
27 views

When are '$form_state['values'] copied to '$form' on rebuild?

as far as I understand it whenever you submit and rebuild a form (e.g. 'Add another item' on fields with infinite cardinality) something like this happens: User submits a form with filled values ...
0
votes
2answers
37 views

Have the '@domain.com' part of the email fixed

I'm using the email registration module so that users can log in using their email address. The users are all from the same company, so I want to know if there's a way to have the '@company.com' part ...
-1
votes
0answers
16 views

I need a module for online user status

Who's online block has an option to allow users to choice wither show there online status or not and setting the default choice. I need a module that allow the administrator able to set such a ...
0
votes
0answers
19 views

Get a node and fields with SQL?

Is there any way in Drupal 7 to load a node and its fields without the Entity Query API? I need to get a field value based on another field in an external script, and don't want to bootstrap Drupal.
0
votes
0answers
5 views

Ubercart show Prices without Tax For specific Role

I need to show prices without tax for specific user role. Other available roles should see prices with included tax. How I can achieve this behavior?
0
votes
1answer
14 views

Ubercart is on my Drupal site, but cannot find the “Product Information” tab to enter the weight of the product

Basically, I have the "Product" tab, but it does not have a field for the weight.
0
votes
1answer
21 views

Add class to views row if image fields has content

I have views which has multiple image fields. In some cases all those image fields are empty, but some cases one of them has content. When image field has content I want to have extra class ...
0
votes
1answer
32 views

Comment count for different language

I have a blog section on a bilingual page that I'm working on and I'd like to show the total number of comments below each teaser. Not to confuse users, the total should be total number of comments ...
0
votes
0answers
20 views

Availability Calendar not working using Views

I could not find this issue in the issue tracker for Availability Calendar module and I'm wondering if somebody has encountered this issue before. I set up 'Page' Views for all 'Contents' of ...
0
votes
1answer
21 views

Generating Main content nodes based on SQL data (associated with users)

This is the first fully fledged website outside of a blog that I've ever configured, so please forgive any glaring errors I make in my logic. My website is a ranking website: people create a profile ...
1
vote
2answers
21 views

Printing current node workflow state name as the page body classes

I have a workflow system in my site using workflow module, and I need to print the node current state name as body class. I did the same with user current role in template.php with this snippet: ...
0
votes
3answers
38 views

unexpected error [on hold]

i have a blog on drupal and since yesterday i cant write new articles on the blog, every time i try to do it an error shows up that said "an unexpected error have occurred, try later" PS: the ...
0
votes
1answer
16 views

Add tabs on node edit page

How can i add a new tab in node tabs ( with edit, view tabs ) and show a page on this new tab ? i am working on a shopping cart where i need to add a new configuration tabs with nodes and ubercart ...
0
votes
1answer
20 views

Node theming through Views or tpl.php files - which one is better for performance?

As an example, let's take a node with 5 fields and two blocks between those fields. E. g. you want an article do be displayed like this: First field Second field Block with related nodes Third ...
0
votes
5answers
57 views
+100

how to call a webservices on hook_form_FORM_ID_alter but not when the form is submitted and validation raise no error?

I have to call a webservice than dynamically modify the form. I used hook_form_FORM_ID_alter to do that. The problem is hook_form_FORM_ID_alter is also called on submit event when the form is not ...
1
vote
0answers
14 views

Is it feasible to have UUID as the primary key for custom entities?

When creating your own entities via the Entity API module, it is possible to get a UUID key via the UUID module. However, it seems that the default set-up is to still have a “serial” (ie. ...
0
votes
0answers
13 views

Accessing same site from two domains( single installation ) [on hold]

One editor will be adding content in my site from his home. Just to safegurard my Adsense account, I don't want to show him the ads. Can I make same site available on another domain using same set of ...
0
votes
0answers
9 views

Webform id is not accessible by Captcha

I have got translated webform with the following ID webform-client-form-7--2. In the Captcha module general settings I tried the following values for the form id to allow captcha render on that form, ...
0
votes
0answers
7 views

Module similar to Layout (Panels responsive layout builder)

Some of you know any module that looks like what the Layout (drupal.org/project/layout) is a Panels responsive layout builder. Thank you very much.
0
votes
1answer
18 views

How to use PHP Mail function or sendmail to send and/or receive emails from my live site

I am hosting my site on OVH and they have told me that sending emails using external SMTP servers is not allowed. I need to use the PHP Mail function or sendmail. I have a Drupal 7 installation and I ...
0
votes
1answer
31 views

How to make form update/rebuild every page load?

Part of my custom form that gathers petition signatures includes some markup saying "last signer: Bob, 3 minutes ago", looked up from a database. But if the user does not submit the form, eg they ...
0
votes
1answer
10 views

Best way to create outbound link with node field content

I am looking for the best way to create a button that I attach to each node's page that directs to an outside site. The url of the button will information that is in one of the node's fields. I know ...
0
votes
1answer
13 views

Change the rendered output of a Message entity

I'm using the Message module to create messages on certain events, for example, on forum node creation: "X has posted a new thread in the Y forum." I've got a view that spits all of these out. I ...
0
votes
1answer
18 views

Can't direct a domain to a working D7 test site

I've created a D7.29 test site on godaddy's "deluxe classic hosting" plan at www.mybusiness.com/test and it works great. The site structure is root\mybusiness\test. Now I've been trying to copy ...
0
votes
1answer
35 views

Drupal: Homepage has redirect loop

One of my sites has started to have a redirect loop that just happens on the homepage. Not the secondary pages though. (Drupal 7 - Commerce Kickstart) Error 310 (net::ERR_TOO_MANY_REDIRECTS): There ...
1
vote
1answer
18 views

Ask visitor if he want to view page on his language

I use Internationalization module on Drupal 7 for multi-language content and my default language is English and I have one more language. The thing I have to do is: To check if visitor is from ...
0
votes
0answers
8 views

Features auto delete field

I've been using Feature to provision changes between my DEV, STAGING and LIVE sites. What I'm finding is when I make a field redundant on a node type on my DEV site, features does not automatically ...
0
votes
0answers
7 views

Having a field of type text/list, how to get its translated label options in pathauto alias pattern using entity translation?

I'm using: entity_translation module pathauto module I have a field of type "List (text)" with some options setted up (key|label) In automatic alias settings in pathauto, for that content type, I ...
0
votes
1answer
19 views

Form results not displaying - D7

Below is my code. Form results are not displaying below the form. What am I missing ? When I use print_r($form_state['storage']['results']); I'm getting the results. But it is not displaying in the ...