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
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
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 user 199

Using a term introduced in Drupal 8, routes are the paths to which modules respond.

2
votes
1answer
Looking at user_menu() to check the answer for another question, I noticed the function contains the following definition. $items['admin/people/create'] = array( 'title' => 'Add user', 'pa …
asked Jan 8 '13 by kiamlaluno
1
vote
For Drupal, enquiry/%start_date/%end_date/%persons/%children and enquiry/%start_date/%end_date are different; so you aren't overriding an old one, but defining a new one, for which you should use hook …
answered Oct 25 '15 by kiamlaluno
0
votes
There is a typo in the code shown by the book: It should be user/%user_uid_optional/profile. Even if you correct that, the code is not working. In fact, when you use that wildcard, you are telling to …
answered Aug 12 '13 by kiamlaluno
5
votes
In order to use a placeholder like %student, you need to define a student_load() function in your module, or an enabled module should define such function. Drupal automatically uses that function when …
answered Aug 30 '13 by kiamlaluno
2
votes
The reason the "delete" link is not shown is that the link is only shown when the menu item is created by (or associated to) the Menu module. _menu_overview_tree_form() contains the following code: …
answered Sep 18 '11 by kiamlaluno
0
votes
, in this case). To keep that behavior, you should define the campaign-management/test/%/add and campaign-management/test/%/edit routes. …
answered Apr 8 '16 by kiamlaluno
1
vote
1answer
The example given in Access checking on routes for using _custom_access is the following. example.routing.yml example: path: '/example' defaults: _controller: '\Drupal\example\Controller …
asked May 17 '16 by kiamlaluno
1
vote
In admin/structure/menu/settings, you select which is the source for the Main links, and the Secondary links. By default, the source for the Secondary links is the User menu; if you set it to No …
answered Jan 22 '13 by kiamlaluno
1
vote
Drupal doesn't show tabs when there is just a tab defined or visible for the currently logged-in user (which includes the case users don't have the permission to see other defined tabs). If you look a …
answered Nov 10 '15 by kiamlaluno
2
votes
"user" is a path already used by the User module; if your module is not executed after the User module (i.e. you are not altering the order hooks are executed), the menu item of the User module takes …
answered Feb 12 '13 by kiamlaluno
1
vote
You are using the correct function (menu_link_save()), but you are passing it the wrong arguments, and you are calling it from the wrong hook. The array key you can pass in &$item are described in th …
answered Jan 29 '14 by kiamlaluno
3
votes
Modules can implement preprocess and process functions for theme functions using a template file; for theme functions not using a template file, Drupal 7 allows module to implement a preprocess functi …
answered Sep 27 '13 by kiamlaluno
2
votes
If the first item of the access arguments is the string for the permission the user should have to access the menu item, you could use the following code. function order_add_access($permission, $node …
answered Jan 13 '13 by kiamlaluno
2
votes
One of the functions that invokes hook_menu(), menu_router_build(), uses the following code. $callbacks = array(); foreach (module_implements('menu') as $module) { $router_items = call_user_f …
answered Mar 23 '14 by kiamlaluno
14
votes
They access $_POST in the same way other functions do. Take file_ajax_upload() as example; it contains the following code. if (empty($_POST['form_build_id']) || $form_build_id != $_POST['form_bui …
answered Jul 6 '12 by kiamlaluno

15 30 50 per page