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

Services authentification by X-CSRF-Token

I created REST API by drupal 7 services module. Thought that, if I enable 'login' and 'token' actions in user resource, then when some user send in header 'X-CSRF-Token', he will be logged in only ...
0
votes
0answers
4 views

Display Local tasks from one page to another

I have a menu structure like this: $items["foo"] -> MENU_NORMAL_ITEM $items["foo/bar"] -> MENU_DEFAULT_LOCAL_TASK $items["foo/something"] -> MENU_LOCAL_TASK $items["foo/bar/bazz/%"] -> MENU_CALLBACK ...
0
votes
0answers
9 views

Webforms module breaks MySQL database

I've got 'Webform 7.x.3.20" installed on my Drupal 7 and it works perfectly, apart from it seems to have 'broken' the MySQL database. I first noticed this when I tried to use the 'Backup and Migrate' ...
0
votes
1answer
14 views

Relate number of values to an integer field

I was wondering how to do this with drupal. You probably wonder why I don't just use the unlimited amount of values setting. That's because I want to require the user to fill in the amount of values ...
0
votes
0answers
11 views

LDAP password sync, happens every login

I've successfully setup the LDAP configuration so that users can login to Drupal using their LDAP account. I've mapped the Drupal password to the LDAP password so that when users change their Drupal ...
1
vote
2answers
31 views

Views: Display the value of multiple value field as a separate column/field?

I have a multi value select list field in the content type. In views it is currently displaying as: title: test title field_name: value1, value2, value3 And I want it to display it like this: ...
0
votes
0answers
8 views

Drupal 7 Services REST - DELETE Request

I'm trying to delete user account via REST api. Here is my code: $service_url = 'http://www.example.com/rest/user/login'; // .xml asks for xml data in response $post_data = array( ...
0
votes
0answers
9 views

Rule for adding role to new user in organic group in DRUPAL 7

This may be answered already, but i can figurate how to do it. Using rules I need to add "trial-member" role from group's roles to user when he become group member.
0
votes
1answer
22 views

How to trim content from a heavy database

I would like to trim content from a heavy production database (1GB), to reduce transfering time, local mysql import time and generally make it easier to work with. I know I can ignore cache, watchdog ...
0
votes
0answers
19 views

Page title - Token drupal 7 issue

Shortly, here is my situation: I have installed both Metatag and Page Title modules. The Page Title module page shows all my nodes and correspondent meta title I inserted. The issue is that on ...
0
votes
0answers
14 views

Set Commerce Product Price via Rules

As this is the first time using rules for me, maybe I am doing something wrong. I want to set the product price to 0 if no price is set. What I am doing so far is this: Event is "before saving a ...
0
votes
1answer
12 views

hook_cron_queue_info doesn't run [on hold]

I am using hook_cron in my module to create a queue. The queue will process a couple of non-drupal database tables and synch some data around (a process that can take close to 10 minutes). I'm ...
0
votes
0answers
7 views

Send SMS to multiple users (using rules)

So I was hoping to create a sort of subscription system using Flags, Rules and SMS Framework. I have the SMS system set up courtesy of this tutorial https://www.youtube.com/watch?v=dqkOcz_8I4U I ...
-1
votes
0answers
9 views

Where can i find a tutorial on how to setup Drupal 7 on Google PHP App Engine? [on hold]

I was wondering what are the performance enhancements if I setup drupal 7 on the google app engine php. does anyone know where i can find a tutorial on how to set drupal 7 up on the PHP app engine?
0
votes
2answers
24 views

Voting system compatible with Views

Before anyone say "Possible Duplicate" I want to tell I searched it and i found thousands modules. It seems too complicated (to me) so I get confused. I need a brief explanation about how to implement ...
0
votes
0answers
13 views

How to debug memory hogging site with Fatal errors online and segfault with drush? [on hold]

My site is broken: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 72 bytes) in modules/block/block.module on line 165 The error messages vary, it's in different ...
0
votes
0answers
20 views

Using symlinks in the files directory

I have created a symlink in the sites/default/files folder and used that as upload path for a field, but after pressing the upload button I get the The file could not be uploaded error message. I ...
1
vote
0answers
11 views

How to set different default images in an image field per domain?

I'm working on a set of similar websites (promoting products of different regions) separated by Domain Access module. I'd like to set different default image in an image field in each site. Is it ...
0
votes
2answers
31 views

Creating a Field in order to add Icons to content's Title

we want to add Icons before the Content's title just like the picture below (icon before Glory of the Hero): but the problem about the stuff already existing in prior asked questions is that we're ...
0
votes
0answers
12 views

I need help theming node form in omega subtheme [on hold]

I'm trying to theme a custom content type form in drupal 7 and it is returning WSOD everytime I put this code Here's the code. Located in template.php of MYSUBTHEME function ...
0
votes
1answer
9 views

Is there a robust, free module for SE-style social signup?

I want to enable users to create accounts using existing Google, Facebook etc accounts, without needing to come up with and remember yet another password. Similar to how the StackExchange network ...
0
votes
0answers
9 views

How to add a description to Goals?

I'm using the Goals module in combination with Views. I'm now displaying all the Goals that were completed by a user on the profile pages in a table that contains the Goals' image and title. Now, I'd ...
2
votes
0answers
11 views

How are node and node_revision tables related?

I've noticed that the following does not work to unpublish nodes: db_update('node') ->fields(array('status' => 0)) ->condition('nid', $array_of_nids, 'IN') ->execute(); But it ...
0
votes
0answers
12 views

How to configure SSO by SAML on Drupal?

At first, I am new in SAML. Could somebody tell step by step, how to configure SSO on Drupal using simplesamlphp? Or how to test by "Test configured authentication sources"? What I have now. ...
0
votes
0answers
13 views

Getting “an error http 200 occurred” on every ajax call [on hold]

I'm getting the error everywhere in my website. In views, flags, pretty much everything that uses AJAX. I tried reinstalling jquery update module, cleared cache dozens of times, just can't seem to fix ...
2
votes
1answer
36 views

Views: how to remove ending zeros from decimal field

Suppose, we have a view with a decimal field: It is output like this: 5 000.000 Is it possible to remove the ending zeros, so it looked like this: 5 000 But if there are meaningful values in ...
0
votes
0answers
14 views

Search terms that start with a period break core search module

Setup: Core search module Apache web server w/ mod_rewrite Default .htaccess that ships w/ Drupal When searching something that begins with a period, like ".ssh", this .htaccess rule takes effect ...
1
vote
0answers
10 views

Group similar strings in translation interface?

I have a couple of menus with same options inside like "Add new order" for different client types. So when I want to translate this only one string "Add new order" drupal 7 offers somewhere around 7 ...
0
votes
1answer
16 views

How to do it with views?

I have two content types BLOG and PROPERTIES In BLOG, I have an entity reference field called "Related properties" that will point to the PROPERTIES content type. Every BLOG node is gonna have a ...
0
votes
1answer
19 views

Error when importing View

I am trying to import View from one Drupal 7 Environment (from local to pantheon one) and got this error: - Field handler views_entity_commerce_order.operations_dropbutton is not available - Unable ...
2
votes
1answer
17 views

Ways to speed up a simpletest?

I'm trying to speed up my test. I have to use simpletest_clone. I've read something like "copy the database to memory" but i did some research and didn't found how. Aaand if i want to do more than ...
1
vote
1answer
27 views

How to get a list of all displays of every view?

I'm doing some test and I'm trying to get a list of all the displays of every view to do the test things in every display of every view, but I don't have any idea how to do it. When using ...
0
votes
0answers
20 views

Change text size on a page with callback

I must add buttons on my site to change font size by the user, an accessibility option. Additionally, after user changes the font size, my custom javascript function must be called as a callback after ...
0
votes
0answers
12 views

Cannot get add option for deployment appear in VBO list

I'm having trouble getting "Add to managed deployment plan" option appear in bulk operation list for node content. I have check "Bulk operation" in "administration: Deployment Nodes (Content)" page of ...
0
votes
0answers
9 views

Service links inside the body of the content

I have a set of nodes for one content type with fields title,image,body. Using views i have arrange the nodes in one views.Each node body of the content with read more option. I am using Service ...
0
votes
0answers
4 views

Webform module email variable manipulation

I'm using the Webforms module to send forms etc. I'd like to customize the email being sent to do some basic math calculations but i'm not sure how to do it. eg. Within webform-mail.tpl.php I have ...
1
vote
1answer
8 views

Custom Field Type hook_field_widget_form() not showing #title values

I have created a custom field type. When creating a piece of content with this field type I get a select list and a text area like the image below. However, I have stated that the '#title' for the ...
0
votes
3answers
23 views

How to get rid of a duplicate title on the front page?

Here is the site in question: http://test.ctrpclub.org When I first made the front page, I created a Basic Page and selected "Promoted to Front Page" and thought I was done. Drupal insisted on ...
0
votes
0answers
14 views

Need to center images in wyswyg block

I am trying to center 3 images in a block I have created in my footer but the images just won't center. I tried the wysiwyg editor's center button, but that did not work. I then tried to put in manual ...
0
votes
0answers
14 views

How to programmatically set all og memberships for a user ignoring logged in user perms?

I have a custom form to enable certain roles to set group memberships for a particular user. On the submit handler I want to set the memberships in an absolute, not incremental way. As I understand, ...
1
vote
1answer
24 views

Increase search field maxlength?

Currently the search field has a maxlength of 128, I am wondering if there is any way to increase it too maybe 255?
1
vote
2answers
20 views

Views No Results: Show Block Instead?

I have a view that is set up to report breaking news from a "breaking news" text field. But this field is often empty, and in the no results behaviour, we would like to show one of our special offer ...
1
vote
1answer
16 views

Sort Entity Reference Fields

I am trying to find a way to sort the referenced entities in a node. I have found a related question "Ordering of referenced entity" but it cannot be applied in my case for the following reasons: 1) ...
0
votes
0answers
20 views

domain change in a multisite environment

I have 2 sites in a multisite environment. one is www.mycompany.com installed at public_html/mycompany.com main directory of the drupal core and uses sites/all folder I have another site ...
1
vote
0answers
21 views

Why SOLR does not search 0 in text?

When user enter to searchbox "0", it is showed all results (likes when you submit empty searchbox). It's work like search remove "0" from search keys. Is it SOLR or drupal problem? How to avoid this? ...
0
votes
3answers
31 views

Show a default value when user doesn't fill in a field

I would like to show a default value if the user doesn't fill in a field in the user profile. For example: I have a Hair type field. If the user fills it in, i would like the following output: ...
0
votes
0answers
13 views

Warning: Invalid argument supplied for foreach() in image_style_create_derivative() (line 902 of image/image.module)

I'm uploading my images to Rackspace cloud CDN using the following code: <?php if (!empty($entries)) { foreach($entries as $value) { $container_id = $value['cid']; $nid = ...
0
votes
1answer
15 views

How to generate images for profile picture in Drupal 7?

Let's say I've a site with hundreds of users. I would like to provide a profile picture to users who don't have a picture on their profile. How can I do that?
2
votes
2answers
49 views

Views sorting by date

I want an overview of articles sorted by their post date (some articles will be posted back in 2007). But then the possibility should be there to move an article back to the top of the list (we want ...
0
votes
0answers
10 views

add shipping information programmatically

I want to add shipping information to order programmatically(I have some policy for it),how can I do it? my idea is add submit handler in form ,then load profile and set it in form_state values ...