A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [7]

Version tag to tag issues specifically related to Drupal 7.x. Please note that version tags should be used only for questions that apply to a version only, not to merely say what version a site is using.

Filter by
Sorted by
Tagged with
0
votes
1answer
2k views

Entity metadata wrapper + entity reference + translation

I have two node types: 'festival', which can be translated and 'event', which untranslatable. Event has multivalued field reference to Festival, so that one Event referenced to all translated festival ...
0
votes
1answer
580 views

Entity Translation: Translate breadcrumb

I'm having issues translating breadcrumb. Everything works, menu items, strings etc... a part from breadcrumb. I've tried hook_menu_breadcrumb_alter to reset the title with no success. How can I ...
0
votes
0answers
20 views

Field gets unset and fails validation in user edit form

We have a special date field that we set upon user creation when our custom user form is submitted. The user does not have to set this field themselves. We have a separate form, which is a user edit ...
1
vote
1answer
573 views

How to create a confirm popup when delete item with field collection?

I have configured a field collection field (unlimited items) for a content type and I want create a confirm popup when user delete an item. For this, i found that i can directly go and modify 2 ...
0
votes
1answer
14 views

How to add a custom module to a menu?

I am using Drupal 7. I have just built a wonderful custom module. Now I need to add it to my main menu, under the parent item "Tools and Resources." I know I can go to the homepage and click on the ...
0
votes
1answer
1k views

How to bulk re-index the whole site for core search?

I have a website that has about 100,000 nodes. In the core search page (admin/config/search/settings) it shows that: There are 80801 items left to index. It index 100 (or at most 500) nodes per ...
0
votes
2answers
601 views

Add class to all labels in a comment form

Pretty straight forward. For every label within a comment form, I wish to add a particular class to it. Using only functions in template.php, in Drupal 7, how can this be done? If it can't be done ...
0
votes
0answers
10 views

More Images on home page will slow down the site? [closed]

I have a page that is set as a homepage. The home page is having around 50 images with different image styles added for it. Around 6-7 image styles are loading for all images displaying on the home ...
1
vote
1answer
2k views

How do I get navigation menu on top with narrow viewport?

I'm running Drupal 7.28 with Zen 7.x-5.5. In the default setup, there is a region on the right side named "First sidebar" which contains a block named "Navigation". I have put my navigation links ...
2
votes
1answer
785 views

Views with exposed filters WITHOUT `Use Ajax`?

Is there a way to use exposed filters, but not require Use Ajax ? I want exposed filters but I want it to submit the form and refresh the page.
1
vote
2answers
639 views

Hide Alt and Title for image field

How to hide Alt and Title fields for anonymus users when they upload images? I use tokens for these field that's why I need to hide them.
0
votes
2answers
2k views

Insert values into a node fields with entity wrapper

I've tried to use entity wrapper to create a new node and insert the values into the fields, but I get an error. <?php $values_entity = array( 'type' => 'anuncio', 'uid' => $userid, ...
4
votes
1answer
383 views

How to limit what is available for a role in Administration menu ?

I am using Drupal 7 and installed the Administration menu. It works fine and I am really happy with it but after creating a new role, and also creating a new user for that role, he seems to have the ...
0
votes
1answer
18 views

how disable edit for a certain content type, and a certain role,

in a drupal 7 site i have been given to maintain, it seems that permissions are not working as expected. I check and uncheck the buttons for a certain user role, but that user role always has the ...
1
vote
7answers
11k views

How to set the default value of an exposed filter rather than -Any-?

I have a view with exposed filters in Drupal 7 and I need to set the default value of a filter to current year. I also need to unset/remove the - Any - option from the select list.
1
vote
1answer
2k views

Webservice endpoint with hook_services_resources()

I've stumbled upon some limitations of the services module. I wanted to create the following endpoints: public/events/ public/events/categories public/events/resources public/blogs/ I wanted to ...
5
votes
3answers
706 views

Why Content Path cannot be used to sort a view?

Using Views with Drupal 7, how can I use the content path to sort a result table? I have node title, created date and path as fields for a view. The first two fields have the checkbox to make them ...
0
votes
1answer
19 views

How can I remove Features modules from a site without affecting functionality?

I have inherited a site that makes heavy use of Features, and this constrains what I can do to permissions and creates dependencies that don't otherwise exist. Something as simple as turning off the ...
4
votes
2answers
3k views

Using Media, views, and colorbox to create a image gallery

Currently I am running in D7 with the following modules: Media 7.x-2.0 Views 7.x-3.7 Colorbox 7.x-2.4 I am trying to create an image gallery using these modules with the following steps. Please ...
0
votes
1answer
40 views

hook_node_update not working

I placed the following function in my custom module. function MYMODULE_node_update($node) { if ($node->type === 'page') { $node->title = 'test'; } } When editing and saving a node of ...
2
votes
1answer
910 views

How to expose filter for entity reference as dropdown in the Search API view?

In my Search API view, I'd like an Exposed filter > Entity reference to be a select box, not a text field. Details I have a view which I created like: Views > Add new view > Show: default node ...
0
votes
1answer
768 views

How can I disable the form confirmation message?

I'm referring to the green box that informs the user that they have successfully submitted their form. In particular, I'm wondering if I can remove it without writing any php. Is there anything in the ...
1
vote
2answers
750 views

How do I create product variants?

I have a product (for example, "Desk") which has two attributes (size and life). Size has the values small, medium, and large. Life has the values 7 years and 10 years. The price is different for ...
0
votes
1answer
28 views

Cron timeouts at 60 seconds, but all the related timeouts are set higher

We're getting 504 Gateway Timeouts on AWS from a Drupal 7 site at 60 seconds, but everything AFAIK is greater than that. The timeout is specifically during running the feeds_source_import in Ultimate ...
-1
votes
0answers
23 views

How to bulk update path using drush and pathauto?

Is there a way to bulk update paths, using pathauto and drush in Drupal 7?
2
votes
2answers
873 views

Loading a queue?

How can I use Drush to pass data into a Drupal Queue? function hook_cron_queue_info() { $queues['my_queue_name'] = array( 'worker callback' => '_my_queue_callback', // This is the callback ...
0
votes
0answers
7 views

Elysia Cron not running cron tasks that were previously paused

I have 2 cron jobs that are scheduled to run every two minutes. When I first added them, they worked as expected and ran normally. We ended up needing to pause these cron jobs for a few weeks and so ...
3
votes
2answers
981 views

Show menu link descriptions for a custom navigation menu

I have the following navigation, displayed in page.tpl.php: theme('links', array('links' => menu_navigation_links('menu-site-navigation'))); There are four navigation elements that show up. I ...
1
vote
2answers
919 views

HTTP request status error

This is the error shown in reports/status. Your system or network configuration does not allow Drupal to access web pages, resulting in reduced functionality. This could be due to your webserver ...
2
votes
1answer
1k views

How to check if View is empty with PHP

I'm using Simplenews Scheduler to automatically send a digest of new nodes, by inserting a views token into Body field of the newsletter. I need to prevent sending the newsletter if the View in ...
0
votes
1answer
5k views

Best way to use image styles with Media and WYSIWYG?

Up to now, I've been using the Insert + WYSIWYG + CKEditor to insert images with specific Image Styles in a wysiwyg interface. This works well, and it's very easy to select and apply image styles (...
1
vote
1answer
661 views

How I can include Commerce SKUs in search result?

How I can include Commerce SKUs in search result? I am using “Search API and Search API Solr” modules. Any suggestions?
0
votes
2answers
400 views

Sync user roles across websites

I am using Drupal 7. I want to sync my Drupal website roles on 2 websites on the same top level domain, as in, one is example.com, the other is other.example.com, how can i achieve this? Bakery module ...
3
votes
2answers
2k views

How to fix rules which unable to evaluate action?

I have created two rules to act on some events related to commerce products. The first is to act on reference node delete event, to remove the product upon node delete. the second is to delete the ...
0
votes
1answer
414 views

How to get the actual value of a field in Views?

I'm using the Views module and Drupal 7 and want to add a class to all rows of my table that have a certain value for a certain field. The field is a bit field and is included in my query. I have ...
0
votes
1answer
10 views

Changing field instance display settings for view_mode

Background In the user.module file in user_build_content(), there is a line that adds fields for a given view_mode: $account->content += field_attach_view('user', $account, $view_mode, $langcode);...
0
votes
1answer
16 views

How to programmatically clear/refresh module file cache?

I'm maintaining a module, and have reworked the file structure of the module to make it more... modular. In the update functions, some of the new files are referenced, but Drupal isn't aware of the ...
0
votes
0answers
36 views

Text in url after the node id

I have found something strange in the URL on my drupal. I can add text after the node id and the page display as normal. Example : https://www.drupal.org/node/11111 return the same as https://www....
3
votes
5answers
874 views

how to get content type field name as drop down for filter in view

In Drupal 7.10, I have created new content type with 15 fields and file upload for collecting input from end user(named inputdata). I need to create a search page with content field of "inputdata" (...
2
votes
1answer
499 views

How do I modify the query parameters?

I want to modify query parameters used when accessing a Drupal page. I tried implementing hook_url_inbound_alter(), but it only allows to parse/modify the path, and it doesn't allow any interaction ...
1
vote
1answer
704 views

How do I remove the active class in the main menu?

One item in the menu has sub-items that point to the same page (just with different arguments) ex: Products - List item 1 \products?pid=1 - List item 2 \products?pid=2 - List item 3 \products?pid=...
0
votes
1answer
752 views

Help with $base URL path in settings.php

Since I created my site (long time ago!) I have added content and changed many settings. My URL has always been www.domain.com/'drupalfolder'/(content) I want to remove the drupal folder from the URL ...
0
votes
1answer
735 views

Views webform filter based on the current node field value

I have a Webform where it's used to get product comments. This webform is exposed in a node page and has a field that is populated automatically with a value from the current node, lets say "...
1
vote
1answer
615 views

Block Settings not applying to Zen sub theme

I've created a Zen sub theme using the Starter Kit enabled it, and set it as the default (I've changed very little from the Starter Kit). If I go to Structure > Blocks there is only a tab for the Zen ...
0
votes
1answer
629 views

Rate module thumbs up / down widget with button

I am using rate module to count likes and dislikes. Here I am using Thumbs up / down widget. My question is that how can I show a button below thumbs up and dislike button below thumbs down. In the ...
0
votes
2answers
798 views

Add cropping option to an image form

I've the next form. $form['imagen'] = array( '#title' => t('Image'), '#type' => 'managed_file', '#upload_validators' => array('file_validate_extensions' => array('...
-3
votes
1answer
27 views

How can I achieve real time syncing for node queues from D7 to D8 [closed]

I want to synchronize nodes between two or more environments, on multiple different Drupal versions, when a node is edited, regardless of its environment. Both does not share naming convention.
0
votes
1answer
347 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 ...
4
votes
2answers
3k views

Programmatically modifying global custom text field in view

I have a (Apache solr) view with a Global: Custom text field in addition to my normal fields. This field is meant to get value from a custom function/existing field/passing an existing field to a ...
0
votes
1answer
85 views

Node content is not shown

I installed DrupalGap. Everything works fine so far, except that the node body is not displayed. I have none of the mentioned interfering modules installed. I also tried with a fresh Drupal 7 ...