This tag is for questions about modules hosted on Drupal.org. It should not be used to generally mean "this question is about a module," when the question is about a module's code, or when the question is already using a tag specific for a module (for example, "views," "cck," or "pathauto").

learn more… | top users | synonyms (2)

0
votes
0answers
10 views

How to introduce pagination in custom module

I have custom module where in it generate monthly bill which has multiple data rows and columns, using this i have to generate monthly bill,but now problem is data is more and i want to introduce ...
0
votes
0answers
8 views

Drush not working, T_FUNCTION from views_fieldset.module not related to PHP version (5.2 - 7.0.2) [duplicate]

When executing almost any command in Drush (for example drush status, or up) I get: PHP Parse error: syntax error, unexpected T_FUNCTION in ...
0
votes
0answers
11 views

Drupal 8 site migrated from Drupal 7 shows themeless and blockless front page

I've installed a brand new Drupal 8 site (http://checkwmiplus.edcint.co.nz) with next to no configuration, default theme etc. I then ran Drupal Update against a Drupal 7 site ...
1
vote
1answer
16 views

How to share only a particular link in a node using social media,instead of complete node?

Using user referral module i was able to generate referral link. After this i enabled social media module in order to share the particular link to other people whom i would be referring. While ...
2
votes
1answer
19 views

How to use hook_form_alter to target a specific drupal commerce form?

I have a fairly basic question I think. I've written a module that uses hook_form_alter to alter the fields in a product form. But now I'd like to change the fields in the form for a different ...
0
votes
0answers
13 views

Search pager links not correctly appending query string [on hold]

Within the pager generated by Drupal 7's search module, does anyone know how to update/change the pagination links so they append to the end of a non-default clean URL? I am using Drupal 7.41.47 with ...
0
votes
1answer
19 views

Building a custom module holding a simple form, submitting to the database [on hold]

I'd just started on Drupal and I'm pretty lost after creating my own custom module. So far I've only created a page that shouts 'Hello World'. What I want to do is just create a simple page that holds ...
0
votes
1answer
10 views

PluginNotFoundException - MailChimp

Earlier today I tried to install the MailChimp plugin for Drupal 8. I couldn't get it working properly so I decided I would just go ahead and uninstall it. However, when I navigate to ...
1
vote
0answers
6 views

Ad module. Channel URL's being ignored

I have a site using just the default ad "group: default" block and am using channels to place ads on certain URLs The block seems to follow these rules but I have one advert in a channel that appears ...
0
votes
0answers
8 views

CK Content Injector enabling is disabled

I just installed CK Content Injector module but I cant not enable it since the checkbox is disabled. it shows missing libraries but the node.php is present in the template folder
-1
votes
0answers
9 views

How to add Image in Manage Orders [on hold]

I have a module which adds text on the image. Here is link to module http://213.59.235.227/magazz/?q=hats/%D0%BA%D0%B2%D0%B0%D1%80%D1%82%D0%B5%D1%82-1 I want to add customized image in Manage orders ...
0
votes
2answers
43 views

How to improve performance in drupal7 [on hold]

I have custom module where in involves queries from db using this we are generating reports based on our requirement now big problem is whenever i am creating report with more data its throwing proxy ...
1
vote
1answer
19 views

hook_views_query_alter if date field empty sort with another field postdate

I have a view that show all contents of type NEWS NEWS has like fields : Content = Title Scheduler = publish-on and in sort criteria : I want sort contents with two option : With scheduler ...
1
vote
1answer
22 views

How to create dependent dropdown [duplicate]

I have module where I have written my own functions using php, with two dropdown list in a row. Now my requirement is when I select for example say "A" from 1st drop down then in 2nd drop down only ...
0
votes
1answer
21 views

How can I hook into an entityform submission?

I've got entity forms installed, and I'd like to use some db_queries when a particular entity form is submitted, as to make use of the information filled out on that entity form. Is this possible, ...
0
votes
2answers
33 views

Trying to create a link in a custom module

I have the following code ` class PopularContentParselyBlock extends BlockBase { /** * {@inheritdoc} */ public function build() { $client = new \GuzzleHttp\Client(); $res = ...
0
votes
0answers
14 views

how i can display the weekly view in manage availability in rooms_availability?

Hello i installed Rooms module, and enabled all dependencies, now when i edit a bookable unit and when i click in manage availability i can edit availability per month. But I do not want a monthly ...
0
votes
0answers
15 views

Any module to protect Adsense form clickbombers/spamers? [closed]

I just got hited with click-spams. There is any module that can protect me from spamers who spam ads?
4
votes
2answers
35 views

Drupal dynamically create fields based on integer value

I have a requirement that I need to dynamically create x number of fields based on a supplied int value from a text box. Example: There is a software content type. A user goes to add a new piece of ...
0
votes
0answers
16 views

Drupal Booking a week (days and hours available) (reservation per day/hours and availibility per days/hours)

I look for a module similar to 'rooms availability' but I want to be able to choose availability by days and hours of each day. the principle is: each lawyer consulted her profile, a calendar that ...
0
votes
1answer
28 views

Limit of 15 routes in module.routing.yml

I have see when i want to create a new route they have an limit of 15 routes per module. In fact i have created an over route an i'm suprise to see of my road wans in route:debug. However they are in ...
-1
votes
0answers
14 views

How to implement a catalog for products? [closed]

Is there any article about creating catalog for online store?
0
votes
0answers
17 views

Drupal, Services and authentication

I can't authenticate with Drupal 7 and Services module. From REST client I send POST {"username":"username, "password":"password"} to user login endpoint. I get sessid, session_name, token and user ...
1
vote
1answer
26 views

How can I check if a module is enabled?

In Drupal 7, you can use module_exists() to check whether a module is enabled (as well as whether it exists). For example, if (module_exists('devel')) { How can you check whether a module is ...
0
votes
1answer
71 views

Create a “read more” button using AJAX in a Drupal 8 module

I'm working on a really simple module in Drupal 8 to get the hang of things. What it does (or rather, what the page I'm asking about in this question does) is grab some data of a bunch of simple ...
1
vote
0answers
20 views

Theming form with template file

I am trying to follow these tutorials (http://themery.com/dgd7/advanced-theming/forms/with-templates and https://www.drupal.org/node/1419390). And I have created these files: login_form.module ...
1
vote
1answer
19 views

Have to hook into a function from a module

I am using the LinkedIn Integration module and have created a custom module to add some functionality. Please see the linkedin.inc file at line 17 - function linkedin_access_token($account) When a ...
3
votes
1answer
15 views

How do I allow user to select table column they want in Drupal View?

I am trying to create a Human Resources Portal for my organisation. I have to create a table via View to show all the list of staff of the organisation which is about 500 employees. My major problem ...
0
votes
0answers
23 views

How to use Drag & Drop dnd:removeFile event?

I'm using Drag & Drop module to let users upload an image in their profile (I'm using a custom profile tpl). In that custom profile, I'm using in-place editable fields with AngularJS, so there ...
0
votes
1answer
41 views

How to download or print user profile data

I am using Profile2 module to create user profile. I am installing the print module to print or download user profile data, but when I am viewing our profile page there are not such options are ...
1
vote
1answer
23 views

Override module javascript file in theme or custom module

Is it possible to override a single javascript file from a module within a theme or custom module? My specific use would be for Views/js/ajax_view.js - I've had to apply multiple patches to get ajax ...
0
votes
0answers
24 views

Drag and drop module - Display uploaded images inline

Using drag and drop module I am able to upload multiple images but once it is uploaded, it is displaying in table format creating new row for each image uploaded. How do I display images inline and ...
3
votes
1answer
63 views

Does a new site installation run through hook_updates of every module?

I have an existing D7 website for which i write hook_updates whenever i have to make any changes to the schema. Now, i have altered the taxonomy_term_data table using one such update. My question is ...
0
votes
0answers
16 views

AJAX Replace Glitchy on custom theme

I have a form in my module that uses an ajax callback to replace input fields. It's working on themes that come with drupal. However on a custom theme, it's glitchy. The replace happens, however the ...
1
vote
2answers
38 views

Generate new password for users periodically and notify user of new password

I am running a private Drupal 7 site where all user accounts are created by admins and managers. I need to ensure that all users have access to the email account that their accounts were created with. ...
0
votes
1answer
19 views

customize shopping cart

I'm just looking for a module in drupal to make a shopping cart customizable. I mean that there will be no products, I just need that people put the amount of money they need to pay and just click ...
0
votes
0answers
14 views

how i can display the file path in imce?

i want display the file location path in the imce : i opened the imce-file-list.tpl.php and i found that : <tr id="<?php print $raw = rawurlencode($file['name']); ?>"> <td ...
3
votes
2answers
40 views

On a module Issue page, how do you tell what version the patch has been applied in?

Much of the time, take this field collection migration issue for example, when I find an issue with a drupal module, there has already been an issue filed, and in some cases the issue has a status of ...
0
votes
1answer
36 views

Drupal invoice calculate

I recently started using the invoice module for Drupal (/project/invoice). Everything seemed to work until the moment I was going to make some test invoices. The total amount is wrong (see figure): ...
0
votes
0answers
5 views

Adding #ajax to an existing dropdown menu

I'm trying to add the #ajax property to a dropdown menu on a node add form. If I add the following code to a hook_form_alter, the ajax triggers correctly (on blur the ajax circle spins next to the ...
0
votes
0answers
19 views

Drupal Webform Date Calculator

I am needing to create a date calculator for horse pregnancy. Sounds odd, but this is the requirement. This is a veterinarian and the form already exists on hardcoded php site, but I have no access to ...
1
vote
1answer
27 views

Adding a tab to the login page

On the Login page, there are 3 tabs i.e. "Create new account", "Log in", and "Request new password". Are there modules out there that let us add more? If not, how can I achieve this manually? Cheers
0
votes
1answer
24 views

Database connection onto an module

i'm new into the world of Drupal, i'm a student comming from the Symfony ^^ I have create a module an i want to add an database connection for my module. In looking for an answer i have see the ...
0
votes
2answers
34 views

Execute Javascript when the registration form is completed

I am running Facebook advertising campaign for my site. The below code needs to be executed when registration is completed. How it should be done ? there is any module for such thing ? ...
0
votes
0answers
19 views

Error 404 when trying to open link that exists (via click on link)

I have a strange bug in my site. Lets say that there is an external page with some links of my website. When clicking on a link i get a 404 error. The errors still occurs when trying to make some hard ...
0
votes
0answers
18 views

Void menu, only some links scroll

I have been using void menu and adding the smoothScroll class to the menu links but they only work up until any , any void higher the class="smoothScroll" doesn't get printed. I am not sure how the ...
0
votes
2answers
46 views

How does Drupal 8 pick up a theme template file?

Does any one know how Drupal 8 picks up theme template file? I mean in source code. I have module which use a custom template file for a custom block , but the custom template file was not been ...
0
votes
0answers
20 views

how to add “remove” button in widgets items of entity reference view widget field?

i have a problem, i want to add a button "remove" for each items, this is the code of the module : /** * Implements hook_form_BASE_FORM_ID_alter(). */ function ...
0
votes
1answer
46 views

Can't get variables [closed]

I'm trying to get variables to use them in my module but I can' get them. I try print_r($variables) and get "Undefined variable: variables in include_once().." The same happens if I try to get ...
1
vote
1answer
23 views

How to iterate through an object returned by fetchAll?

Since fetchAssoc was returning only one row, i was forced to use fetchAll. The problem is fetchAll returns the data as an array of objects. Iterating through them is kind of painful, not impossible ...