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 |
Use it for questions related to the Token module, or a similar form of token replacement system. Don't use it for authentication tokens.
1
vote
1
answer
91
views
Custom Token + foreach not functionnal
I have created a custom module with that :
function mytoken_token_info() {
$info['tokens']['node']['team_url'] = array(
'name' => t('Team URL'),
'description' => t('Returns a custom … url for team and team pages'),
);
return $info;
}
function mytoken_tokens($type, $tokens, array $data = array(), array $options = array()) {
$replacements = array();
if ($type == 'node …
0
votes
Custom Token + foreach not functionnal
empty($data['node'])) {
$node = $data['node'];
foreach ($tokens as $name => $original) {
switch ($name) {
case 'team_url':
$path = 'node/'. …
0
votes
1
answer
219
views
How to access private page (views page) with authentification in the URL?
All the pages of my site are private (by role). I have nodes and views pages.
I want to access to a views page with an external link. But, If the visitor isn't logged, this visitor can't access to the …