Skip to main content
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
Results tagged with
Search options answers only not deleted user 2800

Privatemsg allows your site's visitors to send private messages to each other.

4 votes

What's wrong with the way I use variables in my function?

For a variable to be available in the scope of a function, it needs to have been initialised (or it needs to have been initialised in the global scope and imported into the local function using global …
Clive's user avatar
  • 168k
2 votes
Accepted

Privatemsg overwrites page title for custom code. How do I correct it?

I guess the private message form sets the title directly. A simple way round it might be to cache the current title before you render the form, then set it back again afterwards: $stored_title = drup …
Clive's user avatar
  • 168k
4 votes
Accepted

Add reverse IN clause to db API

That's (arguably) non-standard, so you'll need a where. For example, $query = db_select('foo'); $query->where(':val IN ({table1}.col1, {table2}.col2)', array(':val' => $user->uid)); will get you …
Clive's user avatar
  • 168k
0 votes

Services for Privatemsg module

That resource has an optional type parameter, so you should be able to get away with requesting: http://example.com/rest/privatemsg/?type=inbox Or ?type=sent, etc …
Clive's user avatar
  • 168k