Skip to main content
4 votes

Check access to entity for logged in user in Drupal 8

I have tested the entity access and $entity->access('view', $account); that worked in my case. I earlier used the optional $account parameter so that it could check the currently logged in user. I ...
Nitin Shirole's user avatar
3 votes
Accepted

How to flip order of Privatemsg thread from ASC to DESC?

Any other ways I can get it to work, outside of hacking the module? There is no way to alter a module from another php file / module unless it provides a hook, luckily here they did. I must be blind,...
No Sssweat's user avatar
  • 31.4k
3 votes

Drupal private messages database table design

In general with Drupal you want to avoid directly querying the database if you didn't create the tables yourself. Instead try to use functions provided by core or the module to get the data for you. ...
acrosman's user avatar
  • 2,728
2 votes
Accepted

How to display a form filled by a VBO-submission?

As per the "I'm not very experienced in development", you may want to use an alternative approach which only requires site building skills, as further explained below ... Use the integration of the ...
Pierre.Vriens's user avatar
2 votes

Check access to entity for logged in user in Drupal 8

You can check annotations of those entities and find access handler. e.g. /** * Defines the Private Message Thread entity. * * @ContentEntityType( * id = "private_message_thread", * label =...
Alex Kuzava's user avatar
  • 1,101
1 vote

Link to send message is not displayed

DrupalGap's implementation of Private Message has not evolved enough to take into consideration any Private Message configuration set on a DrupalGap Manage Display page for User Entities. That being ...
tyler.frankenstein's user avatar
1 vote

Howto override a function in privatemsg.module?

The _privatemsg_format_participants() function is called from template_preprocess_privatemsg_recipients() function, which is a template preprocess hook. You can simply override ...
Yogesh's user avatar
  • 3,193
1 vote

Display additional fields in the Inbox?

/** * Implements hook_form_alter(). */ function modulename_form_alter(&$form, &$form_state, $form_id) { if ($form_id == 'privatemsg_list') { $form['updated']['list']['#header']['...
mchar's user avatar
  • 1,654
1 vote
Accepted

How to use the Menu Badges to show the number of recieved messages via Privatemsg?

If you don't want to use that "scotch tape" anymore (as in your own answer), then have a look at some of the comments in issue # 1719112, which detail how you may get it to work "as it is supposed to ...
Pierre.Vriens's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible