Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Version tags should be used for questions that apply to a version only, not to merely say what version a site is using.
1
vote
Create Custom Date Formatter for Date Posted Field
In Drupal 7, the created and updated "fields" on nodes (and other entities) are properties and not proper fields. …
2
votes
How can I promote content by number of hits (reads)?
The near defacto solution for this is the Radioactivity module:
This module provides a field type which can be used as a hotness
metric or a regular view counter for entities and for much much m …
1
vote
How do I add Google Scholar meta tags to a custom content type?
The Metatag module doesn't provide a UI for custom tags, but it does have an API for defining new tags. If you want to go down this route, look at the included Darwin Core sub-module for how it imple …
5
votes
Accepted
How can I set up Drupal so people can collaborate on content development prior to making it ...
The near defacto-standard for this in Drupal 7 is the Workbench Moderation module, which is part of the broader Workbench suite. …
1
vote
How can I import non-unicode text file by Feeds module?
I can only provide high-level guidance here, but you need to use the Feeds Tamper module, which allows you to alter data between when it is read from the source, and then passed to Feeds.
However, I …
0
votes
How to tell if content has been migrated
It has been a while since I have done a proper D2D migration (I do more imports from non-Drupal sources using custom scripts), but you should be able to examine the migration map table(s) for nodes. …
4
votes
Clear data stored with drupal_static() and cache_set()
The Drupal way is to have a $reset parameter to your function. It would look something like:
function _mymodule_call($reset = FALSE) {
if ($reset) {
// do stuff
}
// ...
}
node_load() is …
3
votes
Accepted
Execute system cron manually
There isn't an individual function in Drupal 7 that just handles the file cleanup.
Also keep in mind that when you run drush like this, you are running as the user who you logged in as. …
13
votes
How to decide between module_exists and function_exists?
You should always program to the API and not the implementation. If Drupal provides a mechanism to do something, use it.
module_exists() should almost always be used for soft dependencies on somethi …
2
votes
Accepted
How do I customize the date-submit part in comment section?
You can use format_interval() to do this.
function MYTHEME_preprocess_comment(&$variables) {
$comment = $variables['elements']['#comment'];
$variables['created'] = t('@created ago', array(
'@ …
3
votes
Anyway to clear cache on Drupal 7 without any extra modules or even going to the performance...
drush cc all is the safest bet.
Visiting www.example.com/update.php will also clear the caches, but you need to be logged in. Otherwise, this is a DOS vector.
3
votes
Accepted
How to force Views (or whole Drupal) to lowercase page paths?
Drupal 7 is case-insensitive with regards to inbound URL routing. However, I am not 100% sure this is always the case with Views arguments being pulled from the URL. …
3
votes
Accepted
Does Views cache row entity?
Yes and no.
user_load() leverages a per-request cache. This is implemented as a static cache in the entity controller (see the DrupalDefaultEntityController class). So, if the same user is loaded m …
2
votes
Accepted
htaccess non www to www redirect is not working properly
Your problem is more than likely that you are placing the rewrite rules after the catch-all rule. Try restoring the stock .htaccess, and uncommenting lines 92-94, so that it reads
# To redirect all …
8
votes
How to export users with passwords?
User passwords are stored using a one-way hashing algorithm and cannot be converted to plaintext. In addition, each Drupal site uses a unique cryptographic salt, so that the same plaintext password o …