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)

-1
votes
0answers
9 views

mailhandler and feeds import fails to convert emails to nodes?

I have mailhandler and feeds modules well configured to reach emails from inbox and convert them to article nodes, I have a developement server and a live server... I completed the site on dev server ...
0
votes
1answer
11 views

How do I use a theme hook suggestion in template.php?

How do I convert a theme hook suggestion into a function in template.php? Here is an example I pulled using TEMPLATE_preprocess_field() with dpm(). What would I name my function in template.php to ...
0
votes
3answers
22 views

D7: file_create_url() usable in node.tpl.php?

Can you use file_create_url() inside node.tpl.php? Should I assume you can only use it in the template.php? $img_src = render($content['field_image']); $bgimage = file_create_url($img_src); Using ...
0
votes
0answers
15 views

Bizarre Views and Node admin screens

This is a screenshot of the content settings area of the node administration page. MENU SETTINGS, URL REDIRECTS, XML SITEMAP, REVISION INFORMATION, META TAGS, COMMENT SETTINGS, AUTHORING INFORMATION ...
0
votes
0answers
7 views

How do I ensure that a 'no results' view block is still refreshed by Block Refresh

I have Block Refresh enabled on my site. It does a great job refreshing content blocks unless the original block load contains zero results. If a block is loaded without results, and a new node ...
1
vote
2answers
85 views

Should I activate feature modules on my dev site?

I have installed the features module on my dev site. I am using it to store newly developed site functionality within new modules. I then install the modules on my live site. I was wondering, ...
0
votes
1answer
16 views

How do you search for duplicate urls?

I have a problem with my navigation menu which may be related to a duplicate url? A view or or other module may be creating the same url. How would I search my site for duplicate or conflicting ...
0
votes
0answers
6 views

Translate older custom content panes in panels

I am working on a Panel's based multilingual site. After some initial site build (Agile), it was decided that localization should be implemented. i18n to the rescue :-) I am able to translate ...
1
vote
2answers
21 views

My data content type does not appear as an option on my 'Add content' page

I have just created a new content type for my site, and wrote a few rules which act when an instance of that type is created. I went to create a few test instances of my new content type and noticed ...
0
votes
0answers
10 views

Is there a rule condition for 'is user:' or 'is root user'

I am creating a rule that will help to manage permissions, but I only want it to run if the root admin is logged in. Is there a rule or a rule helper module that allows rule conditions to be based on ...
0
votes
0answers
12 views

Show English tabs regardless of current site language

A localised Drupal 7 site has four languages. Three non-English languages are for the site content, and English is the admin language. Most users won't be logged in. The only logged-in users will be ...
0
votes
1answer
22 views

Resolving mysql error Integrity constraint violation: 1062 Duplicate entry '' for key 'uri':

I'm getting the integrity constraint violation error (as shown below). There indeed exists a row in file_manage table with uri=''. So my question is can I simply delete this row entry from the table ...
0
votes
0answers
10 views

Ajax does not run for first time after redirect

I have a custom content type with few custom fields. I alter the form and add ajax replace callback. So when I type first field 'name' ajax replaces the next field with '$name($nid)'. That works nice. ...
0
votes
1answer
14 views

One time db scrub with .install file

I need to scrub a production db to replace paths in the body field. Being a production database, it needs to happen in a time-sensitive, well-documented way with the solution frozen in code. I'd ...
3
votes
3answers
124 views

Are unique node titles neessary?

I am considering automatically assigning the uid to several of my content types automatically. However, one other data type uses a number as its title too (product number actually.) There is a ...
0
votes
0answers
6 views

Edit pages defaulting to wrong visibility settings, roles

When I access the edit form for a block, the visibility settings displayed are incorrect. The "Show block on specific pages" radio button defaults to "All pages except those listed", even when it had ...
0
votes
0answers
20 views

Why can we not name our wildcards in HOOK_menu()? [duplicate]

Pretty generic question but in D7 when creating a new menu item with a wildcard, why can I not name my wildcards something generic so that the code is easier to understand? E.g. This doesn't work: ...
0
votes
0answers
13 views

Negate redirect rule based on Ubercart cart contents

I am having trouble getting a rule to work the way I want it to. I actually have two rules... one is fired when a "new" product with a specific taxonomy (catalog) is added to the cart via a Views Bulk ...
0
votes
1answer
12 views

How to always show poll results view instead of vote view on poll single node?

The default poll runtime settings don't fit our needs. We need to have a time window with a specific start date and a specific end date. When it's too early the button and radio inputs will be hidden. ...
0
votes
1answer
17 views

Change user roles based on profile field

I have an field role_type with values - 0,1,2... And I need to add role X to all users who have role_type = 2? How can I do that? Rules? SQL? Thanks for your help.
0
votes
1answer
17 views

How to add google translate to comments

I want to be able to have the ability to translate to comments only , is there any type of module I could use for this
1
vote
1answer
109 views

how to distingush multiple ajax submit in single ajax callback

I trying to do add more functionality for adding video urls which I am able to do by using Ajax callback.I am referring a drupal examples for it.It has one remove one button which removes last created ...
0
votes
1answer
18 views

Some links in admin not working correctly

I know this is a pretty "broad" issue, but I have several links in the admin interface that are not working correctly. One place in particular is in the Rules section of admin. When I edit a rule and ...
0
votes
1answer
11 views

Adding Search to Responsive Menu Module

I'm trying to set up responsive menu module (https://drupal.org/project/responsive_menus) and add an advanced search inside of it. I've been unable to get the advanced search to show up in the ...
-1
votes
1answer
22 views

Why do we use “target_id” as the name of the index in php instead of “entity_id”? [on hold]

I'm finding that while I'm coding that I type in things like $entity->field_fieldname['und'][0]['entity_id'] and that this doesn't work. When the Drupal 7 developers were developing it, why did they ...
0
votes
0answers
10 views

Change behavior of Ubercart Attributes so that it is possible to select no option

I have an Ubercart product with ten attributes that are intended to be add-on items. The customer can select an option from each of those attributes, but it is not required that they select any of ...
0
votes
0answers
13 views

Why are admin pages not replaced when using Administration Views

I installed and activated the Administration Views module, but I have not seen any changes regarding my content management screen. I double checked and found that there was an admin page active in my ...
2
votes
1answer
92 views

List registered users who are currently viewing a page

I'm looking for a module that, given a page URL, returns the list of users who are currently viewing it. The list should be dynamically refreshing to show page view activity in real-time. Is there a ...
1
vote
1answer
15 views

Is there a way to add bulk operation options to the admin/content list's 'Update Options'?

I have downloaded the views bulk operations module and activated it. I offers me many new options for changing the settings on my nodes/entities. I would like to know if there is a way to add these ...
0
votes
0answers
12 views

Error generated by drupal 7.2 when I execute different modules. I have read different posts but i don't seem to get it right [on hold]

Strict warning: Only variables should be passed by reference in parents_form_alter() (line 376 below is the code: function parents_form_alter(&$form, &$form_state, $form_id) { $path = ...
0
votes
0answers
4 views

A good workaround for the data_export_import's inability to save user roles?

I am working with the Data Import Export module to move user data and accounts from my live site to my dev site. It works fine in all areas except user roles. It is unable to transfer all roles ...
0
votes
0answers
24 views

db_query complete Content Type with all fields automatically

Can I do this automatically in my module without hard coding the list of content type fields: $query = db_select('node', 'n'); $query->join(ALL FIELDS OF THIS CONTENT TYPE, FIELD ALIASES, ONs); ...
0
votes
0answers
19 views

gallery ordering

I am using Drupal 7, Gallery formatter and Lightbox2 for displaying images. I have a content type 'gallery' with image and text fields. the display is set to jQuery gallery. settings ; Slides style: ...
0
votes
1answer
35 views

How to read a Entity reference node's fields?

HEADS UP: The real problem here is I thought ->value() and ->getPropertyInfo() is just a wrapper without DB ops.The key is don't use db_set_active() before $wrapper->function. Sorry for misleading ...
0
votes
1answer
16 views

Display formresults in same block as form

I have created a module that writes a block with a very simple form in it. The purpose of it is calculating distance between 2 adresses, one fixed, one asked by the form. Now I can't get the ...
2
votes
2answers
32 views

How do I post a node that has its created field set to the past in a test class?

I am creating a test class using the framework of the core Testing module for a module that is supposed to autoexpire nodes some time after they've been created. Nodes have two timestamp fields: ...
0
votes
3answers
86 views
+50

How to show a node but return HTTP 404 response

I want to show an existing page(node) normally but return a HTTP404/410 etc instead of HTTP200. How can I do it? Is there any simple way to do it?
-1
votes
0answers
11 views

Menu link content number display [on hold]

How do you make a Menu link to display the number of contents it has e.g. Cars(40)? I have looked through all the help topics but still can't find away to achieve this.
1
vote
0answers
26 views

drupal_static_reset causing errors

I have developed a custom template for a node where I wanted to essentially show the node in a blank white page. I created a file called node--results.tpl.php and page--node--results.tpl.php that ...
1
vote
2answers
43 views
+100

Getting the auto generated thumbnail of the video Using MediaFront and Views

Ok here what's the situation I have, I made content-type of Products with 2 fields: Image field and Video field with unlimited inputs. Using MediaFront module and Views I made a block for ...
4
votes
2answers
208 views

Can't update drupal core to 7.27

I'm tring to update using drush, with the command drush up, but core is not updating. it says on the drush output: Project drupal was updated successfully. Installed version is now 7.27. but it's ...
-1
votes
0answers
23 views

Let Users submit a hiking track which is shown in a map?

I need to show Hiking tracks in a map on my site and additionally let the User insert their hiking track suggestions. Is there any way to achieve this? I have the GMap module installed and its ...
0
votes
0answers
9 views

How do I pass a list of arguments to a VBO view?

I'm writing a rule that will ultimately email users when relevant content has been published, but having trouble fetching my list of users. Basically: I have a content type of RFP (request for ...
0
votes
0answers
9 views

Buying store credits with ubercart

I'm searching for a solution to setup a credit-products with Ubercart for my SaaS hosted on Drupal7+ Ubercart. User can buy credits/points through Ubercart that can be use in the SaaS. I was thinking ...
1
vote
1answer
24 views

Difference between hook_node_view() and template_preprocess_node() with seeing messages

When I add a form to a node's render tree using hook_node_view(), eg <?php /** * Implements hook_node_view(). */ function MODULE_node_view($node, $view_mode, $langcode){ if ($node->nid == 9 ...
0
votes
2answers
45 views
+50

Broken URL on node teaser code

Fankly this is a silly question. I want to print node teaser in a block. As discussed here: How to programmatically render a node's teaser using the theme layer? I've used this code to get the ...
1
vote
1answer
23 views

Does storing my database as a .sql file in my site git repository cause problems?

I have been saving a series of database export files each time I do a git commit of my Drupal site. I have a nice git repository for my site files and a messy folder for my database backups. Because ...
0
votes
1answer
14 views

How to get the managed_file progress bar working in a custom theme?

I'm trying to get the managed_file progress bar working in a custom theme. Right now, when I start an upload, the empty progress bar widget appears in the form, but it doesn't visually update while ...
0
votes
1answer
36 views

How To Change The $tid to $term_name

I've tried to change this code to show the term name instead of the term ID but now no term name or term id show at all Orginal code for term ID function MYTHEME_preprocess_node(&$vars) { if ...
0
votes
1answer
17 views

Any module or way to add line item in existing order?

Is there any way so that admin or whoever permission can add the line item in existing order while editing the order? Any module or custom code?