Skip to main content
Alex's user avatar
Alex's user avatar
Alex's user avatar
Alex
  • Member for 13 years, 3 months
  • Last seen more than a month ago
31 votes
7 answers
41k views

How do I correctly setup caching for my custom block showing content depending on the current node?

17 votes
5 answers
41k views

How can I programmatically render a node's field respecting the view mode settings?

15 votes
5 answers
32k views

How to get the url of a file field of a given node?

10 votes
4 answers
3k views

How to find all inputs that make use of the php input filter to fully disable the php filter module?

9 votes
2 answers
7k views

Whats the proper way to preprocess field collection items to add first and last class names?

8 votes
2 answers
2k views

What is the correct way to update existing module's rules programmatically?

8 votes
7 answers
5k views

What's the best practice to show a node's fields in different regions?

7 votes
4 answers
3k views

How to show taxonomy terms' description field on a node/add form instead of term title only in drupal 7?

7 votes
3 answers
7k views

How do I correctly setup caching for my custom API routing?

7 votes
1 answer
364 views

How to get referencing parent entity when adding entities via Inline Entity Form to set automatic titles?

5 votes
2 answers
17k views

How do I add a condition to a query?

5 votes
5 answers
5k views

How do I know if a link has the "active" class?

4 votes
2 answers
1k views

How to (double) opt-in the user registration process before admins are notified for approval?

4 votes
4 answers
14k views

How to get all parent menu items' titles of the current node?

4 votes
3 answers
4k views

How to configure the existing search system to exclude content types and/or nodes from the search index?

4 votes
2 answers
313 views

How to select nodes of a certain type, created by a certain user and which have reference field to a node equal a certain nid?

4 votes
2 answers
1k views

Prevent the loss of EXIF using imageCache does not work

4 votes
2 answers
7k views

How to set the text format of a field in a node object?

4 votes
1 answer
2k views

Where and why are style tags removed in the render process?

4 votes
2 answers
3k views

How can I overwrite existing menu tree manipulators?

3 votes
1 answer
5k views

How do I check if a user may access a given route?

3 votes
2 answers
1k views

How to change the field name in the url when using views exposed sort?

3 votes
2 answers
3k views

How to provide a translation for a string used within t()?

3 votes
3 answers
3k views

How to add an image field to a programmatically created form?

3 votes
1 answer
4k views

How to prevent drupal form's managed file upload ajax field from resetting the $form_state?

3 votes
1 answer
2k views

How to get all parent nodes from a menu item?

3 votes
0 answers
1k views

Why is my field definition update not working?

3 votes
1 answer
2k views

Is it correct that a node and it's translations have the same node id?

3 votes
4 answers
4k views

How to load a node given a menu link id?

2 votes
1 answer
605 views

An invalid implementation mymodule_form_alter was added by hook_module_implements_alter