Questions tagged [drupal-modules]

Drupal modules are add-ons for Drupal that allow you to extend, and customize Drupal functionality. Use this tag is for questions about available modules hosted on www.Drupal.org.

Examples of Drupal modules are Views, Token, CCK, and Pathauto.

The Project Usage Overview contains a complete list of all available modules for Drupal. This includes a ranking about the number of reported installs for each module.

Get access to all sorts of resources for any Drupal module via drupal.org.

2207 questions
4
votes
2 answers

Is there a drupal module that can create custom dashboards / reports / map data from a mySQL database?

I want to create a backend analytics console for my users. I was wondering if there was a 3rd party service / drupal module that I can use as a starting point for this. Or is this more of a custom job?
jds950
  • 41
  • 1
  • 3
4
votes
1 answer

format_date() not working with timezone

Drupal 7.8 install Site Timezone set to America/New_York in the region settings I have this code in a page callback Problem happens on multiple servers format_date() is not adjusting for the timezone offset by either the default site timezone, or…
Coder1
  • 13,139
  • 15
  • 59
  • 89
4
votes
3 answers

Making sense of print_r output

There are cases when the output for print_r is very complicated, long and hard to read, e.g. objects, nesting arrays, nesting objects, nesting arrays,... Is there library or tools to help developers read this information? Something like the DOM…
user967722
  • 1,213
  • 1
  • 20
  • 26
4
votes
0 answers

Include custom PHP Library classes in Drupal9 custom module

I got stuck with our custom libraries/modules and Drupal9. Installed: Drupal 9.2.7 & Libraries API 3.0-beta1. We have Drupal multisite, with 5 dev repositories and 30+ production repositories. Dev repositories should have our own custom git pack of…
4
votes
4 answers

Will metatags coming up twice with module hurt my SEO?

I have my metatags hand coded in my index.php(page.tpl.php in drupal). Now, I want to use a module called "nodewords" that allows metatags in every individual page; as opposed to just the index page for the whole site. But, now it outputs it as…
Graham
  • 1,433
  • 3
  • 21
  • 34
4
votes
4 answers

how to overwrite drupal default message when posting comments?

I would like to overwrite a default message for posting a comment. For example, I would like to display "Your comment has been sent to the site moderator and will remain private." instead of "Your comment has been queued for review by site…
Vlad Vinnikov
  • 1,457
  • 3
  • 22
  • 33
4
votes
1 answer

Drupal 8 how to alter paragraph form?

In drupal 8, I'm using paragraph in node. It's working fine but I got stuck to alter paragraph form. I want to hide one field on base of other field value. Please help if somebody worked it on before
Sourabh Bhutani
  • 623
  • 11
  • 21
4
votes
1 answer

Drupal 7 Webform : How to display/hide some fields based on other select option fields

I am using Drupal -7 and webform .. I need to show/hide different fields based on on select option. for eg. select option "Project type" if I select "Project type" as A => I want to display field1, field2 and select-option3 if I select "Project…
rinku
  • 415
  • 2
  • 19
  • 29
4
votes
1 answer

How to make a Drupal 7 module use up a .tpl.php template in the theme folder

I have created a module for Drupal 7 which has a hook_theme function that tells it to use usertemp.tpl.php template. I have the template placed in the module folder as well as the theme folder. The problem is that the function is ONLY picking up the…
Carlos Muñiz
  • 1,858
  • 9
  • 25
  • 29
4
votes
3 answers

Where to declare variables common to different include files in a module - Drupal

I have a Drupal Module 'example'. I have split the admin and client side functionality of the module into two include files example.admin.inc and example.pages.inc. I declared constants (define()) in the example.module file, which are accessible in…
Sparky
  • 4,769
  • 8
  • 37
  • 52
4
votes
1 answer

Drupal 8: Notify message is not translated

I am using message & message_notify contrib module. I have enabled language module, It has By default English (en), Korean (ko), Japanese (ja). I have translate below template in Japanese language as well. $language = 'ja'; $message =…
Jackson
  • 1,426
  • 3
  • 27
  • 60
4
votes
1 answer

Get current page/url in a hook

In hook_css_alter, I want to disable style-sheets on specific pages. Was ok for the front page requirement with following snippet: function morin_css_alter(&$css) { if(drupal_is_front_page()){ foreach ($css as $data => $item) { …
Stephane Gosselin
  • 9,030
  • 5
  • 42
  • 65
4
votes
2 answers

What Ties a Drupal Hook to a Particular Module?

What Ties a Drupal Hook to a Particular Module? In Drupal 7, every core module has an "api" file $ ls modules/*/*.api.php modules/aggregator/aggregator.api.php modules/openid/openid.api.php modules/block/block.api.php …
Alana Storm
  • 164,128
  • 91
  • 395
  • 599
4
votes
2 answers

Where is Drupal's Module Hook Calling Started?

In a Drupal 7 (and Drupal 6?) system, what "kicks off" the hook calling process, or where are "top level" hook calls located? As I currently understand the Drupal module system, any module is capable of creating a hook for another module to…
Alana Storm
  • 164,128
  • 91
  • 395
  • 599
4
votes
1 answer

Drupal 8 add javascript and pass data in a hook with custom module

I am building a custom module with Drupal 8. One of the requirements of the module is that it sets up a javascript file based on the configuration settings, which the user of the module sets up in module configuration. The javascript which needs to…
software_writer
  • 3,941
  • 9
  • 38
  • 64