Questions tagged [7]

Version tags should be used 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
28 views

Delegate user administration to a limited set of users

We are currently using the excellent domain module (allows segmenting users by domain) in and the user_import module (allows uploading users via CSV) in Drupal 7. We've got a new requirement where we ...
-3
votes
1answer
31 views

Which version of drupal, php, mysql combination will work on RHEL6? Which version of drupal, php, RHEL will work if we need to use mysql 8.0?

We have a working application which runs on RHEL6 with Drupal 7, php 5.3.3 and mySql 5.1.73. We are planning to migrate it AWS with latest versions which gets support. We need to know the working ...
0
votes
2answers
366 views

How to show view item by trimming?

I'm trying to show articles by trimming. So, first I tried it by managing the display of body field to trimmed from content type. After fail to get desired results I tried it with views module by ...
2
votes
1answer
10k views

How to generate a list of all valid URLs served by my site

Is there a way to generate a list of all valid URLs that a site will resolve, including redirects? Specifically, all views, nodes, and redirects (the from and to.) The list is required for record ...
0
votes
3answers
713 views

TableSelect with drag-and-drop weight

I have a tableselect and I have been looking all over the internet for a tutorial on how to make a tableselect have sorting/drag-and-drop functionality. I have found tutorials for making normal lists ...
0
votes
3answers
431 views

Custom DOM placement using AJAX

I'm using unlimited image upload option in my content type. Upload image and remove the uploaded image options are working fine with the unlimited option. Usually, the uploaded images will be ...
0
votes
0answers
13 views

When is [“und”] necessary in pre process hooks?

I've noticed in preprocess hooks that sometimes a field's value is found at - for example: $vars['field_caption'][0]['value'] and sometimes it's at $vars['field_caption']['und'][0]['value'] Which ...
2
votes
1answer
3k views

How to add Admin approval on webform submitted data in drupal 7

I have the functionality that when any anonymous user submits a webform, then I display the submitted webform data in my new page, but I need admin approval before that submitted data displays on ...
0
votes
1answer
352 views

How do I rewrite a facet item label using facetAPI bonus?

I am looking at the code example provided by Facet API Bonus module in the section Rewrite facet items via callback function function HOOK_facet_items_alter(&$build, &$settings) { ...
0
votes
1answer
364 views

How to add custom sort order to a taxonomy field list?

I am trying to sort the list of content according to the weight order given to taxonomy term. Terminology used: content type : contact-person-details taxonomy : company vocabulary which ...
0
votes
2answers
592 views

How to trigger email by comparing date value in node?

I'm using Drupal 7, with Rules and Rules Scheduler. I have a content type "Tutorial Class", with fields as below: Class Date and Time Feedback requested (Radio button: Yes/No, default is no) I ...
1
vote
1answer
390 views

How to customize my front page with background image?

I have site for which I need to design a custom front page using my sub-theme with page page--front.tpl.php. I need to place a background image and on title at left alignment and little bottom thre ...
0
votes
1answer
417 views

Taxonomy Term showing strange text

Having taxonamy term issues - as glossary terms showing with text below the text saying "There is currently no content classified with this term." does anyone know how to remove or hide the ...
0
votes
1answer
145 views

date_default_timezone_get() returns the wrong timezone

I have several Drupal 7 sites using the same installation in the same server. Two of those sites are returning "Europe/London" when running date_default_timezone_get(). This timezone is different from ...
0
votes
1answer
566 views

'<Hidden>' a field on Manage display

I'm using D7. If you set a field <Hidden> on 'Manage display', and, unless you display it by views or something, you cannot see it anywhere on the site, right? They say... Format The ...
0
votes
1answer
981 views

Blank screen with no error messages on new server

I have a working Drupal 7 site, built with git, running on 2 different servers, one test server and one server used for staging and production sites. So I know that the site is working. So after ...
1
vote
1answer
485 views

trouble with a checkbox on the user registration pages

I created an extra checkbox field for the user registration form This is the field setting page. (Standaardwaarde means "Default value.") In the setting page, the field is unchecked, but it's ...
0
votes
2answers
419 views

How to programmatically add a link to an image field in a view

I have a view with an image field and other fields, and I need to link the rendered image, not the content which is one of the configuration choice, but on another computed filtered view. I think that ...
-1
votes
0answers
16 views

Search for a title doesn't give any search results

I'm using the solr search api, and it's actually is working great. Except, I cannot search for the title of the node, if I do, no results will show up (except if the title is also in the body) But the ...
0
votes
1answer
569 views

Adding class to nested UL in menu

I'm creating my menu using view along with Bootstrap to create a mega menu style navigation. I'm having a problem with the nav showing expanded at times when you come to the site and or refresh. not ...
1
vote
2answers
1k views

How do I create a TEXT column?

I am trying to create a TEXT column. function _mymodule_installed_fields() { return array( 'mymodule_summary' => array( 'field_name' => 'mymodule_summary', 'label' => $t('...
3
votes
1answer
487 views

drupal_http_request returning Invalid JSON primitive:

I am developing a module for Drupal 7 that has t make a call to a remote API. I am using drupal_http_build_query and drupal_http_request and finally drupal_json_decode to decode the output. My code ...
1
vote
1answer
392 views

Pass data to hook_entity_insert

How can I pass data to hook_entity_insert() given that the arguments it takes are fixed? I'm writing to the database during entity save, and need to be able to pass some data in this hook.
1
vote
5answers
7k views

Webform submitted data in views

I am using the Webform and displaying it using the Views module. Unfortunately, I couldn't get the submitted data of the webform in views. Any suggeestions?
3
votes
1answer
444 views

Custom form values in hook_form_alter() not available in custom validate function

I'm modyfing a node form to add a few extra fields. On submit, I need to program some extra logic to these values then save them to the node object. function module_form_alter(&$form, &$...
1
vote
1answer
505 views

How to execute ajax action after image file upload with media widget?

I want to prepopulate some node fields with image metadata (using the EXIF module) right after an image is uploaded/inserted in a node image field with media browser widget and before the node is ...
2
votes
1answer
440 views

Migrate : Update not working

Im using the migrate module to import data from a json feed. Mostly work fine however, i require that each time the feed is imported , updated records in the source are updated in the destination if ...
0
votes
1answer
428 views

Is there a function to get the system path for the current language?

If I'm using multiple languages on the site with path prefixing, is there a quick way to get a system path for the current language? For example, if the current language is English, and I'm ...
1
vote
1answer
419 views

Index custom content in apache solr

I have several custom modules that load and display data from custom tables. I have successfully managed to use the drupal search on these contents, using the drupal search hooks like, ...
2
votes
3answers
537 views

Change Text of Create an Account in Login Block

I want to change text of Create an account to <div>something></div><span><a href="actual_link">Click here</a></span/> When I print the form I got these values ...
-2
votes
0answers
17 views

different files in single view

I am using Drupal 7 and have created on view with the name daily tasks and uploaded the files one by one from 2019-2020 till date and place date filter in it but now I have some data from 2016-2019 ...
1
vote
1answer
397 views

a function to return the quiz nid

There is a template file in the quiz/template/quiz-report-form.tpl.php of Quiz module. this is the code: <?php /** * @file * Themes the question report * * Available variables: * $form - ...
0
votes
1answer
425 views

Combine hook_search_execute

I have hook for user_search_execute and node_search_execute for both user and nodes but i want to merge both into mymoduel_search_execute but only node_search_execute uses index not ...
1
vote
1answer
393 views

Customize admin contenttype page design in drupal 7?

i have created template file for my contenttype wallpaper but i don't know how to get form design in that page. for example my content type name is wallpaper, so i create template file for page--...
0
votes
1answer
399 views

Errors when Taxonomy is chosen in node's Term Reference field

I have created a vocabulary called "Recipes" with several terms underneath (Appetizers, Dinner, etc). I also have a content type called "Recipe" with a Term Reference field for the ...
1
vote
1answer
37 views

Retain Guzzle Session During Batch Operations

On a Drupal 7 site, I am using the Batch API to perform operations on many entities, one at a time. During a typical operation, the D7 site uses Guzzle to make a POST call to a Drupal 8 site. The D7 ...
0
votes
1answer
597 views

Change toolbar config to latest CKEditor toolbar groups

There is a ckeditor plugin that I really want to use (Line Height), but after looking at its .js file I can see that it is configured to work with the ckeditor config.toolbarGroups concepts, which ...
0
votes
1answer
461 views

Image Styles not creating on one custom style only

I've run into this issue where we have created a custom style (emailthumb) which is to be used when sending out email newsletters via simplenews. The thumbnail is based on 'thumbnail' style but is ...
0
votes
1answer
710 views

How to unblock IPs in bulk?

I use the Drupal Core IP blocking feature (/admin/config/people/ip-blocking) to block IP addresses during spam attacks. However, as most of these will be dynamic ones owned by legitimate users a day ...
1
vote
1answer
358 views

How use views exposed filters with taxonomy and panels

I need some help with the use of contextual and exposed filters with taxonomy terms views using panels. Context: I have a panels taxonomy page overriding drupal default page. In this page I have a ...
0
votes
1answer
414 views

How to display specific blocks for specific roles alone w.r.t domains and subdomains

I want to display specific blocks for specific roles alone with respect to domains and sub-domains. I know i can give permission for roles in the block to be displayed.How do i differentiate anonymous ...
-1
votes
0answers
15 views

Carousel View items disappear on mobile

I have a Drupal 7 site and on the front page it has a bootstrap carousel View with 3 items. When the page is narrowed enough (happens at about 897px) the items in the carousel "disappear". ...
2
votes
2answers
358 views

Using computed field value in Rules

I'm using Commerce module and I have a line item with a computed field that's calculating a date. This field finally shows a date. Then during the checkout process I have a form with a Date field (...
1
vote
1answer
505 views

How to change the SID of webforms to increment from a new starting number

We launched a new website that uses webforms but need to make sure our webforms are using an SID for results larger than the last number used on the old site. Please note that I am not referring to ...
0
votes
2answers
396 views

Inserting Block with Custom Input Filter Module via Shortcode Causing http 500 error

I have a custom input filter module, and I am trying to figure out why it crashes when I attempt to insert a block into a post via a shortcode. The method works perfectly when I am inserting a string, ...
0
votes
1answer
18 views

get value from content type B, in a view of content type A

i have a content type named songs. among other fields, it has a field named title of the song, which has as its field type the Node reference. i also have a second content type named songsTitles which ...
0
votes
0answers
29 views

Undefined function in module

I use taxonomy_get_term_by_name() in one of my modules, and it throws a Undefined function exception. My best guess is that this is due to Drupal core system not being ready for function calls. I've ...
0
votes
1answer
416 views

Node is not created, but nid is returned

I have this code in my module. $node = new stdClass(); $node->title = "YOUR TITLE"; $node->type = "page"; node_object_prepare($node); $node->language = 'it'; $node->uid = 1; ...
0
votes
1answer
356 views

EntityDrupalWrapper->value() causes infinite recursion on user login?

I have a few instances on my site where I perform actions on User Login. I create an EntityMetadataWrapper like so: global $user; $uw = entity_metadata_wrapper('user', $user); And then I go to ...
1
vote
2answers
358 views

Restrict delete operation on a node referenced by another node

I am using References module to make a node reference in my course content type that reference to school content type (a course belong to one school and a school have many courses). Now what I want ...