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

How to use file_save to store pictures into a folder on server?

what i want to perform (globally) is to import a csv file that contains data such as book_title, author, and the cover image of the books. The csv file is loaded, book_title and author are stored in ...
0
votes
0answers
15 views

arg() and menu_get_object() are incorrect

So, I have a module with a very plain hook_block_view in it. The hook contains definitions for around 12 blocks. If I var_dump(arg()) at the top of the hook and load a page with 3 or 4 of these ...
0
votes
1answer
10 views

Access Functions Attach in Drupal Behaviors From Global Scope

I have this Drupal Behaviors Javascript code: Drupal.behaviors.myid_templates = { attach: function(context, settings){ function local_function(){ alert('local_function'); ...
0
votes
1answer
8 views

Drupal commerce email order notification not sending properly

On the rule of sending email order notification I just changed the "FROM:" of the send mail, instead of the email of the website I want the email of the anonymous customer from a custom field of ...
0
votes
0answers
5 views

Users can't access Advanced Poll nodes (permissions issue)

I have Access Control control installed and I thought I had permissions figured out. I can create a new page or article and grant or deny access to Anonymous (or other users) by changing the settings ...
0
votes
0answers
6 views

hook to change album views for users

Is it possible to offer users different options on how to view album photos? Currently, it just defaults to a flexslider that I have put as default on my image style. Is using ...
1
vote
0answers
11 views

Create block of popular taxonomy

I am trying to create a block showing the latest tags of a particular Organic Group (only the tags of that organic group should be shown and not all the website's terms!) I have added the following ...
0
votes
1answer
17 views

Git pull crashes website [on hold]

I had to overwrite my site from backup. Thing is my backup is behind GIT couple of commits.(deleted view, finishing touches on features, and a lot more). When I do git pull --all and pull all changes ...
0
votes
2answers
17 views

Import RSS Feed Programatically

I have content in an RSS feed that I'm looking to import into separate nodes. I set up a feed importer, and when I run manually, all works as designed (content is imported, fields mapped properly, ...
0
votes
0answers
11 views

Modifying pager link page numbers

I'm using a solr query from another module which builds the query using $_GET('page')-1 and so I get the same result on page 1 and page 2 of the results. The standard pager gives the pager links as: ...
1
vote
1answer
12 views

Implementing a search and results page in the admin interface

I'm trying to implement a search and results form in the admin interface but I am having trouble getting the search function and pager working. [1] The pager is not showing at all. I've got this ...
1
vote
1answer
10 views

How to show blocks based on parent URL context?

We are looking for a way to show banners on pages based on their URL parent. There are multiple banners in use, and each page should display a banner based on its parent page. We want to build this ...
2
votes
1answer
12 views

Delete query is called while updating the value of node

Delete query is called while updating the cck field value of node. After debugging i find following code in var/www/drupal-7.40/modules/field/modules/field_sql_storage/field_sql_storage.module ...
0
votes
0answers
5 views

Content migration of text field reproducibly results in server fault

I am struggling with a last minute update from D6 to D7, now I am trying to migrate my CCK types to Fields using CCK module in D7, following the documentation. When migrating the most important of my ...
1
vote
1answer
17 views

Remove label Search terms from Views exposed form

On this site in the sidebar i have a views_exposed_form to search. I need this search functionality to show my search results for restricted pages. How do i remove the label 'Search Terms'. Is it ...
2
votes
1answer
182 views

How to programmally add nodes with next nid?

i want to create multiple nodes (from csv file) the csv is loaded well, and my table node contains many old records (with nid from 1 to 170) what i want is to record the csv's new nodes with nid ...
0
votes
0answers
26 views

Ajax on custom route

Any Help would be appreciated : I've created a custom page via hook_menu in drupal 7 in which there is a custom form implemented (and additionnal features). I'm trying to implement an Ajax callback ...
0
votes
0answers
11 views

Pagination using db_select()

I have custom module where I am using multiple db_select() in my module page, and I am getting data from different columns to show them by combining them. I now want to paginate the data, but with the ...
0
votes
0answers
7 views

How to change date repeat display format

I am using date module & date repeat API but now i want to change repeat date format.Now repeat date is display in "Repeats 5 days " but i want to show only "5 days " instead of "Repeats 5 days"
0
votes
1answer
35 views

How to dynamically create Drupal 7 tables based on form API input values?

I have an array with the data below: arr_fields[0] = 'a bigint' arr_fields[1] = 'b bit' I want to structure it just like the array structure below: $fields = array( 'a' => array( ...
0
votes
1answer
22 views

Find legacy id of newly created node

I have 3 non-drupal tables : items, item_actions, actions. items(id, title, body, published_at); item_actions(item_id, action_id); actions(id, name); I were able to migrate items to ...
0
votes
0answers
17 views

How to add a close/back button from a view B to another view A

I have a view A (filtered but not exposed) with several pages. When the user click on a content of the View A page x, a call is done to another view B (filtered too but not exposed) with several pages ...
0
votes
0answers
18 views

Site architecture [on hold]

We are starting a project where freelancers take on jobs listed by clients e.g. web design, art & illustration. Freelancers express interest in a job, and when the job listing closes, the client ...
0
votes
2answers
23 views

Create Database Table in Run Time

I have an SQL CREATE TABLE. CREATE TABLE myid_template_1 ( template_id int NOT NULL, template_description character varying NOT NULL, ); I want to know its equivalent query structure in Drupal 7 ...
1
vote
1answer
14 views

Setting date_popup year range to more than the 3 years default in Drupal 7

I have a custom module and using date_popup. Currently the popup only shows a 3 year range in the date popup. $form['startdate'] = array( '#type' => 'date_popup', '#title' ...
0
votes
0answers
25 views

Why only guests can submit a webform api form?

I use Drupal 7 and the webform API. I made a contact form which works pretty well when you enter the site as a guest, but for authenticated users it doesn't store the data after submitting without ...
1
vote
1answer
21 views

Is it safe for me to use _taxonomy_title_get_title() implemented by a third-party module?

I have installed the Taxonomy Title module 7.x-1.5 in order to change the grey content title on top of certain taxonomy pages. The module added a new field (Term page heading) where I add my custom ...
1
vote
0answers
25 views

How to use a math field to calculate a product of an existing file?

I would like to have a field (field_result) that would display a number that results of the product of an existing field (field_1) on the same content type (let's call it book) and a fixed number ...
0
votes
0answers
23 views

No emails being sent when using User Registration Password set up

When a new user registers with my website it displays "Thank you for applying for an account. Your account is currently pending approval by the site administrator. In the meantime, a welcome message ...
1
vote
0answers
7 views

Default to “no limit” for maximum number of options in field type select

The number of cities and sectors "small cities" in Moldova is around thousand,so we have already exceeded the arbitrary 100 limit without half-trying. The limit causes problems when we translate the ...
0
votes
0answers
12 views

CCK to Fields: content_migrate says missing widgets (image, matrix), but modules enabled

I am attempting an update from D6 to D7 on a site with multiple CCK types (yes, optimist me after reading lots of horror stories), I am following the CCK migration guide and have installed the cck ...
2
votes
1answer
11 views

After updating to drupal 6 to 7: No content types under node/add

I am updating a Drupal/Tripal site on a test system. When I try to add content after migrating core using /#overlay=node/add or /node/add I get: You have not created any content types yet. Go to the ...
2
votes
1answer
21 views

Date format help

I am trying to add Japanese date Y年 n月 j日 in fields but the date is being displayed 2016年 2月 6日 年月日 . I want to remove 年月日 at the end of the date it indicates year month and day. 2016年 2月 6日 is exact ...
1
vote
1answer
26 views

How to select by default nodes of a content type in admin/content through a link?

I'd like to make a link to admin/content/, but when the page was displayed I'd like to have it filtered by a certain content type. The link can be like this admin/content/house so when I click it, ...
0
votes
0answers
30 views

robots.txt is blocking /misc/menu-leaf.png, resulting in negative Google indexing?

I was looking through my google webmaster console and there I noticed I had over 900 pages with blocked resources. Especially /misc/menu-leaf.png is responsible for almost all of there errors. (the ...
2
votes
2answers
48 views

It's safe to change INT to BIGINT or DECIMAL in database? [on hold]

I need to change a field from INT to BIGINT or DECIMAL. I tested changing it directly in the database on field_data and field_revision tables and apparently all is working fine, but I have my doubts ...
3
votes
2answers
91 views

Is it a good way to change multiple text fields values via MySQL or is there any other preferable way?

The site has a content type and this content type has two fields: Text Field Term Reference Field There are thousands of nodes on this content type and I want to change some values (find/replace). ...
0
votes
0answers
10 views

Integrate Fulfillment by Amazon (FBA) [on hold]

Is there a way to integrate Fulfillment by Amazon (FBA) with Ubercart in Drupal 7?
1
vote
1answer
20 views

Add value to field using Entity Metadata Wrapper

I'm trying to accomplish the seemingly simple task to add a value to a multi-value file field in Drupal 7. I have been trying for hours, but none of the answers I found would solve my problem. My ...
6
votes
1answer
22 views

hook_menu_alter when using Organic Groups

I want to change the menu button on my main nav bar depending if the user is or isn't a member of a group. I need one button to 'register' if the user isn't part of a group and that same button ...
0
votes
0answers
17 views

How to have Media module insert HTML, not JSON, into the editor

I'm using the CKEditor module (not with WYSIWYG module) and Media module. When entering images into the editor it puts JSON, then Media's input filter replaces it with the appropriate html on render. ...
1
vote
1answer
28 views

Is there any way to add the social medial buttons in the field of Drupal7?

I have made the field using field collection which are collection of 7 fields and the 8th field I would like to add as strip of social media buttons(like easy social module), so when the entire ...
1
vote
1answer
28 views

What could cause the site to suddenly start dying with the “Call to undefined function entity_get_info()” error?

So I was working away at trying to solve the problem I asked about in How can I combine the fields of two field collections in my theme? when suddenly Drupal died with this error message: Fatal ...
0
votes
0answers
8 views

How to add basic form fields to field group tab?

Now I have profile2 form presented in tabs. Tabs are field groups. Now I want to add to empty field group some basic form fields (not related to Field API). I tried to use ...
0
votes
1answer
23 views

No 'Div Container' button in CKEditor

I've got CKEditor 4.5.0 working on a Drupal 7.42 install. I'm now trying to find a way to wrap more than one HTML element inside a DIV (I want an image and caption to be wrapped in a single DIV). On ...
0
votes
0answers
26 views

Send E-Mail to a role based on profile2 fields

I have tried the following solution; unfortunately, it does not work. I am using profile2 and rules. Step 1: The registered user edits the profile and has a select list with multiple options Ex. ...
1
vote
1answer
17 views

Assign to node all child terms if parent term selected

I started to develop my first website with drupal. So far so good, I like this system, but I have one problem: When creating new node, I want to assign all child terms if I select parent term. Let's ...
0
votes
3answers
27 views

Product category filter on the /products page

I've been looking for a while but I can not seem to find the correct way to tackle the following problem. On my products page, where all the products are, I have the standard drupal commerce ...
0
votes
0answers
11 views

Avoid recursive paths

On my site I've views and custom hook_menu. Also if I don't use page arguments (or contextual filters on views), the system returns pages also when I try to add element on path. Example: hook_menu ...
0
votes
0answers
23 views

Views Exposed Filter and Pager adds leading zero in URL argument which fails

I have a View that exposes a filter like this: And settings are the following: When changing in the exposed filter it works as expected, however I also have a pager and when I try to click on the ...