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
0answers
18 views

Views 3, empty page returns page not found instead of empty text

I am using Views 3 on Drupal 7. I have created a view page and gave a path. I have set to display full content. I have then added a NID contextual filter and set provide default value through PHP ...
0
votes
0answers
11 views

How do i get the “form id” given the “node id” of a webform 3 form?

I would like to extract form structural data from a form when all I have is the node id. What I would like to do is get the "form id" from the "node id" so I can access the form data using ...
0
votes
0answers
15 views

How can I query the full component layout of a form?

I need to create a webform preview page for a client's website that uses many multipage webforms. The idea is to allow a preview so website users can prepare for the requirements of the form before ...
0
votes
0answers
30 views

I can't run cron due to PHP warnings

I can't run cron on the website, due to the following PHP warnings. Warning: Illegal string offset 'content' in dexp_shortcodes_carousels() (line 13 of \sites\all\modules\drupalexp\modules\...
0
votes
0answers
29 views

Callback function for module menu can't be called from another file

I have a module that uses the hook_menu to create an endpoint. It is set up like: my_api.module function my_api_menu() { $items = array(); $items['api/v1/users/test/create-test-users'] = array( ...
0
votes
0answers
17 views

Simplenews can't send test mail

I am using Drupal 7 and I installed the module Simplenews to send newsletters. I put the file in sites/all/modules in my Drupal installation (local) and I activated the module. The content type ...
0
votes
0answers
20 views

File field edit form change display style attachments

I need help. I would like change display attachments when edit entity. Default Drupal display attachments in table but I need change this to eg. unordered list or anything else - how to? I found many ...
0
votes
0answers
16 views

Get emails from field in rules

I have node with field, for example field_assigned, type Entity Reference where I can select users by name. After published this node type i want with Rules module send mail to selected users. Here is ...
0
votes
1answer
25 views

Using Backup and Restore to transfer drupal configurations but not actual data

I am trying to use backup and restore to transfer configurations in drupal, but not the actual data. The backup and restore module allows you to do a backup where you exclude data from certain tables. ...
0
votes
0answers
7 views

Combine fields filter doesn't work with Taxonomy name

Using: Drupal 7 Content type has title, body and category(taxonomy field). Adding a combine fields filter to search these three fields, the search works with title and body fields. But doesn't work ...
0
votes
0answers
12 views

Group ID not passed to Join button in Views

Using Drupal 7. Group module, and Views. I create a group type, navigate to admin/group/type/manage/[group-type]/display, create a display. There is a field called Membership Action Form, This ...
1
vote
1answer
42 views

How do I add a user to a group?

I am using the Drupal 7 version of the Group module. I found this Drupal 8 code which adds a user to a group, and I can't find anything similar for Drupal 7. use Drupal\Core\Entity\ContentEntityBase; ...
0
votes
0answers
32 views

use smtp to programmatically send an email

i am trying to replace the below smtp client with a fake smtp server, in order to use it for dev purposes. I am using the https://www.drupal.org/project/smtp, but whatever i tried failed. In the body ...
0
votes
0answers
13 views

How do I accepted requested membership without bulk operation?

Using the group module when navigating to group/[id]/members you are present with a list of members, and a bulk selector for updated membership/role status. I am able to create a similar page using ...
0
votes
0answers
34 views

Theming user-register-form.tpl.php with password set at registration

I'm using Drupal 7 and I've created a user-register-form.tpl.php to override the default user registration page at user/register. It displays all the fields I need except for the password fields. I'm ...
0
votes
0answers
17 views

How do I set group defaults?

I have set up organic groups, with different node types as groups, such as Colleagues, Teams, and Sponsors. If I go to the relevant node add group page, for example node/add/colleague or node/add/...
0
votes
0answers
15 views

General error: 1366 Incorrect integer value while uploading image

I am using Drupal 7 and i got the following error while uploading the image. DOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'field_third_section_image_width' ...
1
vote
0answers
14 views

Entityqueue + inline entity creation?

Background / use case The entityqueue module is a great way to bridge content with configuration: The entity queue is created in config, and created automatically on deployment. It can then be ...
1
vote
2answers
21 views

How do I give access to only specific roles to buy at my store?

I have a platform with roles for moderators, editors, teachers and students. Only student roles should be able to buy courses and the other roles should not be able to buy courses or see any of the ...
0
votes
0answers
12 views

How can we show up active filter values in exposed filters?

I have a requirement to show up selected filter values from views exposed filter. For ex: When I select OptionA from filter-1(select list) and OptionB from filter-2(select list), Results will get ...
0
votes
0answers
18 views

Automated Testing using CodeShip and Cypress

We are trying to figure out the best way to incorporate CI/CD with our End-to-End cypress tests for our Drupal project which contains a lot of custom code, but are finding it a little difficult given ...
0
votes
1answer
29 views

How to hide body field in a view only on certain content types

I have a search result view of different content types, and i want to show the body field (trimmed) on some content types, but show no body on other content types. Since they all share the same body ...
0
votes
0answers
10 views

How to migrate Contributed Module Configuration from one environment to another one?

I have 5 different Development servers and there is one configuration related to contributed module called External links, now I am trying to create feature for that config so that I can easily roll ...
0
votes
0answers
18 views

How do I set granularity to an END date value used as sort criteria?

I have a Date field with start and end dates (mm-dd-yy). I need to build a View listing nodes grouped by end date year and sorted first by descending end date year and second by ascending title. ...
0
votes
0answers
8 views

AJAX altered Entityform edit form not rebuilt 2nd time

Background I have an Entityform (using module with 7.x-2.0-rc4) with two select dropdowns, and I'm trying to alter it such that the second dropdown filters based on the first using AJAX. Current ...
0
votes
0answers
6 views

Ajax submit comments by pressing enter

I am using the Ajax comments module and display suite. https://www.drupal.org/project/ajax_comments When pressing submit button the comment form gets submitted via ajax as it is supposed to. When I ...
0
votes
0answers
12 views

How to separate the user profile picture upload from the base form in Pages?

I have enabled the user_edit form in Page Manager and added my account fields but the username, password, time zone, language and picture settings always stay in the base form. How can I separate ...
0
votes
1answer
48 views

The email doesn't have the DKIM signature it would get from mail()

My web host (HostGator shared server) normally signs outbound emails with DKIM. When I send emails from Drupal 7.69 (and Webform 7.x-4.22 for compatibility with CiviCRM), however, there's no DKIM. ...
0
votes
1answer
41 views

How do I add the “onload” attribute to a script tag?

I need to add the onload event in jquery script tag as advagg does. I have done a bit of research, and I found that they are actually invoking hook_element_info_alter() and thereby add their ...
0
votes
0answers
13 views

Are there any solutions that integrates custom mysql datetime field with views?

I created my own table with a mysql datetime field via hook_schema. The code that defined the field is here 'timestamp' => [ 'description' => 'The timestamp value when the recipient ...
0
votes
1answer
19 views

Why do all product display nodes with same referenced product (SKU) appear in 1 order view

Each time an order is added to cart, the admin/commerce/orders/11/view, for example, shows all product display nodes ever created on the site for that SKU. I suspect that this is not the normal ...
0
votes
1answer
93 views

How to limit form submission per user per day and week?

The goal is very straightforward. I need a form to limit each user to 1 submission per day and 3 per week. What I found: Webform: The "Form settings" in webform has the "Per user submission limit" ...
1
vote
0answers
31 views

How to trigger a rule whenever users update their picture

Using Drupal 7 and the Rules module I need to trigger a rule whenever users update their user-picture. I tried using the event "After updating an existing user account" which does trigger the rule, ...
1
vote
2answers
36 views

How can I fetch the Inviter in Rules

How can I fetch the Inviter of a user in Rules? I'm using Drupal 7 and the invite-by-email module (part of the invite module https://www.drupal.org/project/invite), to allow users to invite others. ...
0
votes
0answers
11 views

How to automate click the “ Click to Calculate Shipping ” button upon filling up the Delivery Information

I've been struggling for days finding for the right answers . I want to achieve a function that when a user fill up the billing / delivery information , the " click to calculate " button will be auto ...
1
vote
1answer
18 views

Why do D7 form builders have a $form parameter?

In Drupal 7, the first parameter of a form builder function is $form. When implementing a form builder function, one has the option of either adding stuff to this existing array and returning it, or ...
0
votes
1answer
24 views

How can I change the 'type' of Drupal script tags from text/javascript to text/plain?

I could use some assistance in figuring out a way to change script tags for a Drupal 7 site to be "text/plain" instead of "text/javascript" And additional attribute(s). I can tell already that ...
0
votes
1answer
34 views

How to set in my own module dependency on a composer package?

I have some of my own modules written on Drupal 7 that use composer packages. These composer packages are downloaded with the module Composer Manager. How can I set explicitly the dependency on a ...
-1
votes
2answers
30 views

Print machine name in script

I want to include a tracking script in my Drupal website and inside the script I want to include things like, title of page, description etc. In other words, I need to include the machine names inside ...
0
votes
1answer
18 views

In node add, how to upload file using image from clipboard

How can I paste image from clipboard and save into image_field ?
0
votes
0answers
13 views

how cache a view, that has a field that is calculated with php code [duplicate]

//source code from simple_hierarchical select node count module function shs_node_count_term_get_node_count function count_term_get_node_count($term, $count_children = true ) { $og_group_ref = ...
0
votes
1answer
36 views

how cache a view that has a field that is calculated on the fly

in a view, one field has the following computed value, which takes a lot of time to return results from the database: <?php $term = taxonomy_term_load($data->tid); print ...
0
votes
0answers
18 views

How do I authenticate Angular 8?

I have a site with Drupal 7 backend and Angular 8 front end. I use services on Drupal 7, as we I try to access to these services with postman that is possible. First I get a token and then by that ...
0
votes
1answer
29 views

Alter form after submit

I'm creating module to use similiar words to get better search result. I have API which will returns top X similiar words for entered word. What I want to achieve is this workflow: User enter some ...
-1
votes
1answer
51 views

Curl response into variable

Similar to Problem with cURL I have an api response which is returned at numerals only If I break the code with a print_r($rate); which is where I point the curl response to an ajax error shows the ...
0
votes
1answer
25 views

Basic page template

I am using Drupal 7 to create a page and a custom template for that page. I created a page from Content >> Add Content >> Page. In my theme /template folder I have created a file called page--my-...
0
votes
0answers
49 views

How to set different root folder access for different roles in elFinder

I'm using drupal 7.69 and elFinder 2.1.46. A private page is showing elFinder browsing window with 2 root folders root1 |-dir1 |-dir2 root2 |-dir3 |-dir4 I am trying to setup 2 roles: ...
0
votes
0answers
75 views

Issue with Access PHP array in display module

I am passing few parameters via ajax to custom module (fgs_api.module) and in returns getting JSON data ($results->data). I want to use/get that variable ($results->data) in node--xyz.tpl.php ...
0
votes
1answer
15 views

Extend the Scheduler module forms

Hi i'm trying to extend scheduler module forms. The one i need is included as fieldset in node as extra field refer to image /** * Implements hook_form_node_type_form_alter(). */ function ...
0
votes
1answer
21 views

Show the title of the node from an entity reference

i have a content type, which has in it a field which is of type Entity Reference. I now have created a view, where i need to aggregate on the sum of records based on this field. But my problem is that ...