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
7
votes
1 answer

Update {node_counter} table programmatically in drupal

I currently use the statistics module (core) on my Drupal 6 install. This increments a count in the {node_counter} table every time the node is viewed, and this works. My question is - can I programmatically increment this counter as well? I am…
wiifm
  • 3,787
  • 1
  • 21
  • 23
7
votes
5 answers

Skip validation on node delete in Drupal 7

How can I accomplish skipping validation when the user attempts to delete a node in Drupal 7? I am calling my custom validation function in the following manner: function my_issue_form_alter(&$form, &$form_state, $form_id) { switch ($form_id) { …
MTsrb
  • 377
  • 1
  • 5
  • 11
7
votes
2 answers

How to get all the menu items below a certain parent in drupal 7?

I am currently working on a module that finds out the parent menu item by url path then displays the current tree structure of that related menu by finding the top parent and most important only displaying that menu item and submenus from within…
user1808858
6
votes
1 answer

How to access form data in hook_form_validate() in drupal 7

I have a form implemented from hook_form called simplequiz_form() I want to access its data after submit below is the code I have written but I can't seem to access its data once its submitted. What am I doing wrong ? function…
Vishal Khialani
  • 2,557
  • 6
  • 38
  • 49
6
votes
3 answers

Calling the $site_name variable from a module in Drupal 7

I'm creating a custom module that has uses the form API and sends an email on submission- however, I want to make the 'from' email name to be the site name (eg, no-reply@myhttphost.com). In phptemplate you can use $site_name, but…
Matt Fletcher
  • 8,182
  • 8
  • 41
  • 60
6
votes
1 answer

drupal 6 and jquery 1.4/1.5

is there a way in drupal 6 to use in non admin pages jquery 1.5 / 1.4 without breaking the core functionality on non-admin pages??
dorong123
  • 103
  • 1
  • 5
6
votes
4 answers

Correct way to use Drupal 7 Entities and Field API

I'm trying to use Drupal 7's entities and field API to correctly build a new module. What I have been unable to understand from the documentation is the correct way to use the new API to create a 'content type' (not a node type) with a number of set…
Martin Petts
  • 503
  • 2
  • 6
  • 15
6
votes
1 answer

Passing variables to twig using hook_theme within a module

I'm fully aware how to do this in Drupal 7 so I will explain what I would normally do using Drupal 7. When making a custom module I use hook_theme a lot, it is very powerful and reusable! /** * Implements hook_theme(). */ function MODULE_theme()…
Jake Lacey
  • 623
  • 7
  • 24
6
votes
3 answers

drupal module, check if node type

As a more specific take on this question: drupal jQuery 1.4 on specific pages How do I check, inside a module, whether or not a node is a certain type to be able to do certain things to the node. Thanks The context: I'm trying to adapt this code so…
Mark
  • 32,293
  • 33
  • 107
  • 137
6
votes
3 answers

Is there a Drupal module for Forms with powerful CRUD style behaviour?

We are building a website that contains a large number of database tables that need to be edited by the CMS administrator. Some of the tables are fed by form submissions from users on the front end of the website. Some of the tables are purely in…
Petras
  • 4,686
  • 14
  • 57
  • 89
6
votes
2 answers

What is the best way to create standards-based, cross-browser compatible rounded corners in Drupal?

I am currently working on a Drupal 6 theme, for which designer is explicitly requesting to use A LOT of rounded corners. I could of course create the rounded corners - traditionally - with images. But I know there must be also better and easier ways…
jsalonen
  • 29,593
  • 15
  • 91
  • 109
6
votes
1 answer

Detect which other modules are enabled in a new Drupal module

I'm creating a Drupal module which doesn't necessarily depend on other modules, but could offer other options if, for example, the Path module is enabled. What I'd like to know, and can't seem to find by searching, is whether it is possible to…
HorusKol
  • 8,375
  • 10
  • 51
  • 92
6
votes
1 answer

How to remove traces of Fields that belonged to a module content type?

I am trying to learn how to create a custom content type programmatically from within my module. However, after uninstalling and reinstalling my module I was getting an error stating that one or more of the fields I was trying to create could not be…
Tyler
  • 304
  • 1
  • 3
  • 12
6
votes
2 answers

Drupal Views Has Taxonomy Term with multiple terms

Good Morning, I am developing an website and i am in a struggle to resolve this: I have a link like this: mywebsite.com/aliments/fruit/banana. And in a View that creates the page aliments i want only to show terms with fruit and banana checked at…
6
votes
1 answer

drupal field widget not saving submitted data

I'm trying to create a custom widget but when I submit, Drupal doesn't seem to save any data. When using hook_field_attach_submit() to display what data I've pasted, it is listed as null. Strangely, if i change the #type to be a single textfield…
devnill
  • 2,043
  • 4
  • 21
  • 31