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
3 answers
254 views

Is it possible to assign permissions that apply to specif users from independently from their roles?

Using a custom module, is it possible to assign permissions to specific users independently from the assigned roles (which means, without to create temporary roles to which users are assigned), or is ...
user avatar
  • 93.7k
10 votes
1 answer
2k views

Programmatically impersonating another user without causing the currently logged-in user to log out

How should a module change the value of the global $user, execute its own code, and restore the original value of $user without causing the current user to be logged out if an error happens?
user avatar
  • 93.7k
0 votes
1 answer
89 views

Alternatives of using user_load_multiple()

Considering that the parameter $conditions of the function user_load_multiple() has been declared deprecated, if I would keep the code compatible with Drupal 8 code, which Drupal function should I ...
user avatar
  • 93.7k
2 votes
2 answers
1k views

Where is the best place to insert additional logout functionality?

To insert additional logic when a user logs off one might look at function user_logout() in user.pages.inc. This code being in a core module, you should not edit it, but works very well... for ...
user avatar
2 votes
1 answer
591 views

What is the difference between user_is_anonymous() and user_is_logged_in()?

What is the difference between user_is_anonymous() and user_is_logged_in()? It not clear to me when a module should use one instead of the other one.
user avatar
  • 93.7k
2 votes
1 answer
1k views

Gmap Views Module - Popups are too big

I'm using GMAP module and its views counterpart. The issue I'm having is that I'm using a custom text field to display fields wrapped in HTML that I have pulled in from the query. However, the popup ...
user avatar
4 votes
1 answer
913 views

Invoke Mollom CAPTCHA directly

I have a custom form within CTools form wizard that I would like to use Mollom on. Is there an API function I can use to place it in the Form API on that page?
user avatar
  • 26.3k
2 votes
3 answers
159 views

Is there a group of modules that would allow to assign new permissions to users basing on the votes they receive for their comments, or posts?

If I would implement something similar to the reputation system implemented in the Stack Exchange sites, which modules should I install on my Drupal site?
user avatar
  • 93.7k
3 votes
1 answer
188 views

How to retroactively apply Mollom spam filtering?

I've been asked to clean up a site that's been running for a few years, and has accumulated some spam in addition to a lot of valid content. I've just installed Mollom on the site to help reduce ...
user avatar
  • 2,665
4 votes
2 answers
2k views

Login shared between subdomains

If I should allow users to log in using the same username/password, what should I consider when choosing between the following solutions? Install, and use Bakery Single Sign-On System on the main ...
user avatar
  • 93.7k
3 votes
5 answers
809 views

How to make a Feature available only to certain Spaces?

For a Drupal 6 Open Atrium site (i.e., Features, Spaces, Organic Groups) I'm running, I've created some custom Features that only really apply to a handful of the hundreds of groups on the site. As ...
user avatar
  • 2,665
5 votes
3 answers
2k views

Views Slideshow vs list View+jquery cycle lite?

The rotating images on my work site's home page are created as a View in list format. I'm using the jQuery Cycle Lite plugin for the rotator effect. The cycle.lite.js file is set in the scripts array ...
user avatar
  • 1,290
5 votes
2 answers
448 views

Field API versus custom code

If I need to add custom fields only to user profiles, is it better to create a module that uses the field API, or a module that uses its own code to show the custom fields at a custom URL and to save ...
user avatar
  • 93.7k
11 votes
5 answers
21k views

hook_preprocess_page(): how to tell a views page?

Im writing a custom module that need to insert some javascript and css files only in a Views page. Im using hook_preprocess_page, but I can not tell if the current page is from a view: function ...
user avatar
  • 880
3 votes
2 answers
317 views

How to handle blog tags in a contrib theme?

In blog or blog-like sites, taxonomy is often used for tags and categories. In Drupal 6, node.tpl.php files could use the $taxonomy variable if they needed access to an array of unrendered taxonomy ...
user avatar
  • 1,072
5 votes
1 answer
1k views

Bulk saving nodes with a file field

I'm in the progress of creating a bulk upload function for a Drupal site. Using flash I'm able to upload the files to a specific url that should be able to handle the files. What I want to do, is not ...
user avatar
0 votes
2 answers
123 views

How to generate a list of which Features are enabled in which Spaces?

I'm running a Drupal 6.x site with Organic Groups, Features, and Spaces, and I'm interested in generating a list of which Spaces have which Features enabled. Preferably a table, with Spaces along the ...
user avatar
  • 2,665
5 votes
2 answers
342 views

How to perform an operation every time a node is viewed?

When writing a module, how can I perform an operation every time a node is viewed by a user?
user avatar
  • 5,414
17 votes
4 answers
251 views

How do I choose which module to use when there are several options for the same functionality?

It's not at all uncommon to find multiple modules that provide basically the same functionality. For instance, there are many SPAM control modules that offer extremely similar functionality (e.g., ...
user avatar
  • 6,433
5 votes
4 answers
1k views

Good practices working with databases

I'm learning Drupal, and I want to develop a website where the main thing is its database. I already have the Extended Entity-Relationship Model of the database (kind of complex). What's the right ...
user avatar
4 votes
2 answers
4k views

How to override single function of theme's template.php using sub-theme?

Target: Drupal 7 Sub-Theme Development I don't want to override whole template.php file. I just want to override single function of template.php file.
user avatar
  • 414
12 votes
3 answers
2k views

How do I manage collaborative development on a Drupal site?

I work with another developer on a Drupal site. We have struggled to find a good way to work on different parts of the site at the same time without getting in each others way. We've tried working on ...
user avatar
  • 6,433
81 votes
12 answers
54k views

Any way to add CSS for a single page/node?

I'm cleaning up my big crazy style sheets (possibly pertinent to a future question) and I'm wondering the best way to add custom CSS to a specific node or page. In particular, my work site's home page ...
user avatar
  • 1,290
6 votes
3 answers
5k views

Duplicate taxonomy terms from view

So I haven't yet been able to find a solution to this without using a preprocess function to check for duplicates or just using the 'tagadelic' module.. it'd be nice to get some closure. How do I ...
user avatar
  • 398
16 votes
6 answers
9k views

How can I get more than 10 search results on one page?

By default search page shows only 10 results. How can I change it to display unlimited number of results?
user avatar
  • 277
5 votes
2 answers
454 views

What can cause a site to hang when deleting a user?

When I try to delete users the whole site hangs, i.e. Drupal does not respond anymore. What can cause that? The site does not have any special user profile modules installed. Edit: There is only one ...
user avatar
3 votes
3 answers
421 views

Is there a media-handling module that can handle midi files?

I've been using MP3 Player to provide an on-page mp3 player, but I also need to be able to handle midi files. Right now the best I can do is allow them to be uploaded into the "mp3 file" field, but ...
user avatar
3 votes
4 answers
2k views

Views 2 Conditional Filter

How can I apply a conditional fitler to a view (using views 2)? For example: I have a view which displays the teasers for several different node types using a filter on Node:Type in [Blog entry, ...
user avatar
5 votes
6 answers
11k views

Rebuild imagecache

I have an imagefield per node that's run through imagecache. Since imagecache caches on-demand, cache files/variations aren't created until they're first requested. So if I update a bunch of images, ...
user avatar
  • 2,119
6 votes
5 answers
4k views

How to determine if the current page is a search results page?

How can I determine from within a module or theme if the current page is an Apache solr search results page?
user avatar
  • 5,414
9 votes
3 answers
2k views

How do you load extra javascript files required for wysiwyg api plugin on node/edit pages?

I'm building a plugin using the WYSIWYG API module for Drupal 7 that will add a button to the toolbar of supported editors. I'm using the hook_wysiwyg_plugin() hook to create a new button on editor ...
user avatar
  • 3,139
92 votes
9 answers
8k views

Do non-enabled modules affect performance?

Does having Drupal modules present, but not enabled have any effect on the performance of a Drupal site? To put it another way, would removing disabled modules on a Drupal site have a positive affect ...
user avatar
  • 5,414
37 votes
4 answers
27k views

What's the proper way to use EntityFieldQuery?

In Drupal 7, the API documentation for node_load_multiple() specifies that using the $conditions parameter has been deprecated in favor of using EntityFieldQuery. In which way should EntityFieldQuery ...
12 votes
8 answers
7k views

How can I change the Apache Solr search URL?

How can I change the default Apache Solr URL path from "search/apachesolr_search/term" to something else?
user avatar
  • 5,414
3 votes
3 answers
1k views

Documents as a node/block/field

I'm working on my first Drupal site. Using FileViewer I can load a PDF saved in a field, for viewing of various types. I haven't found something that does the same for Word Docs, Excel, etc. Does ...
user avatar
  • 784
3 votes
2 answers
404 views

Which drupal hook to implement to react on module installation?

I have module A installed that defines some custom hooks. Module A wants to be notified when another module B is installed, so that it can inspect and see if module B implements its hooks (for ...
user avatar
  • 431

1
526 527 528 529
530