It would be really helpful if the permissions were slightly more granular. For exampe:

To create a custom token you need to use PHP so this should have a permission so you can set it to only the most trusted users.

To view a list of available Token's this would be helpful for authors, particularly in cases where Token Filter is used. I think this is a really strong addition to an already awesome module! :)

Comments

westie’s picture

Been playing with this and got it working in the follow way:

/**
 * Implementation of hook_perm().
 */
function token_custom_perm() {
  return array('create PHP code for execution by Token Custom', 'View a list of Custom Tokens');

}

&

  $items['admin/build/tokens/list'] = array(
    'title' => 'List',
    'description' => 'List of of custom tokens',
    'access arguments' => array('View a list of Custom Tokens'),
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );

What would be nice is the ability to only display the edit column if they have the "create PHP code for execution by Token Custom" permission

For now I am going to use a custom module because I dont want to hack your module - Happy to supply patch, never done one before though, is there a guide?

manuel.adan’s picture

Issue summary: View changes
Status: Active » Closed (outdated)