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
9
votes
3 answers

How to get rid of Drupal CSS stylesheets?

I am trying to accomplish the following. I need to use Drupal 6 as a project requirement, but I want to use it with my own HTML and CSS stylesheets for each node/view/panel etc. The problem is, whatever the theme, I always found that Drupal applies…
Massimo Cafaro
  • 25,429
  • 15
  • 79
  • 93
9
votes
5 answers

How to check if a user is logged_in in a Drupal site via JavaScript?

I know how to check if the user is logged in through PHP, but I need to do some styling when an event occurs, and I created a separate JavaScript file for this. Is this a Drupal variable or something which I can reference too?
samwell
  • 2,757
  • 9
  • 33
  • 48
8
votes
3 answers

How to programmatically log out a user in Drupal 7?

I need to log a user out and redirect to a URL. How would I do that in Drupal 7? Thanks
Strong Like Bull
  • 11,155
  • 36
  • 98
  • 169
8
votes
4 answers

drupal 7 new module install link don't show

When i go to modules tab i can't find "new module install" link Please tell me how to view this new module install link in drupal-7
user881703
  • 1,111
  • 3
  • 19
  • 38
8
votes
4 answers

change the active Drupal 7 theme programmatically

What is the correct way to change the active Drupal 7 theme programmatically? I used $custom_theme in Drupal 6 but it is not working in Drupal 7.
Prajila V P
  • 5,027
  • 2
  • 23
  • 36
8
votes
1 answer

Drupal 6 - Custom Node Type Template in Module

I have a module which adds a new content type. For this content type I want to supply a node_contenttype.tpl.php node type template, but Drupal will not recognize this template in the module directory, only in a theme. How do I get Drupal (6) to use…
theduke
  • 3,027
  • 4
  • 29
  • 28
8
votes
5 answers

Why is drupal slow?

I have made site on drupal My site has 7500 users and approx (20 to 50 without logged in)(2 to 10 logged in) users are online (and this is not heavy traffic I think) The site is on dedicated server. I have enabled setting in performance from drupal…
karan
  • 214
  • 2
  • 7
8
votes
1 answer

drupal 7 - wiki page

Is there a module or a way to simulate a wiki page for some users role in Drupal 7 ?
radu c
  • 4,138
  • 7
  • 30
  • 45
8
votes
1 answer

Drupal: Are hook_ functions in *.api.php ever called?

In Drupal 7, every core module has a *.api.php file, where * is the name of the module. For example modules/node/node.api.php modules/path/path.api.php What are these files for? They contain functions that start with hook_, and the name of a hook…
Alana Storm
  • 164,128
  • 91
  • 395
  • 599
8
votes
1 answer

Programmatically logout OAuth Connector in Drupal 7

I am using OAuth Connector module to authenticate a user from an external source. Each user on the external source has a corresponding Drupal user account. After successful oath authentication, user is programmatically logged in with a matching…
Swapnil Luktuke
  • 10,385
  • 2
  • 35
  • 58
7
votes
3 answers

Adding attribute to option element using forms api : drupal 7

I want to add title="icons/icon_cart.gif" for each of the below options in my select list which is rendered using views. After trying and reading many articles I can't seem to find the way to add this html into my form. Below is my code. function…
Vishal Khialani
  • 2,557
  • 6
  • 38
  • 49
7
votes
2 answers

Drupal 7 OpenID module

I would like to as how can we have the login similar to the stackoverflow openid using drupal 7? In stackoverflow, we have various login options like facebook, google, etc, the image is show to choose various accounts. But I tried for drupal 7, only…
dywane
  • 71
  • 1
  • 2
7
votes
3 answers

Passing arguments using drupal_get_form()

Here is my custom module using hook, Assume if I want to pass argument to custom1_default_form function call, how should i pass the argument?
Bharanikumar
  • 25,457
  • 50
  • 131
  • 201
7
votes
1 answer

Drupal form submit, form after_build

What is the difference between $form['#submit'] and $form['#after_build']?
Berming
  • 1,302
  • 4
  • 18
  • 34
7
votes
3 answers

Form submit handlers with additional arguments

For some requirement I need to pass additional information to form submit handler. In form api, while defining custom submit handler as $additional_args = array(); $form['#submit'][] = 'my_submit_handler' I expect to submit handler as function…
Shoaib Nawaz
  • 2,302
  • 4
  • 29
  • 38