Quantcast
Channel: Active questions tagged users - Drupal Answers
Viewing all articles
Browse latest Browse all 468

Define permissions for Actions?

$
0
0
function custom_mod_action_info() {  return array('custom_mod_delete_user_cats' => array('label' => t('Delete a users cats'),'type' => 'user','configurable' => FALSE,'triggers' => array('any'),    ),  );}

This action is later used as VBO in a View.

I've defined an action like above in a custom module. How can I set some permissions so only users with a specific role can run this action?


Viewing all articles
Browse latest Browse all 468

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>