Access Arguments List

Component ID


Component name

Access Arguments List

Component type


Maintenance status

Development status

Component security advisory coverage


Component created

Component changed

Component body

This is a simple module to make developer's life easier, it adds the "access argument" parameter to each permission row in admin permissions page ( admin/people/permissions ).

So, developer can copy and use it in custom modules hooks and functions e.g. hook_menu() and user_access().

Example to use in hook_menu():

  $items['foo/bar'] = array(
    'title' => 'Foo Bar',
    'description' => 'My Test Hook Menu',
    'page callback' => 'foo_bar_page',
    'page arguments' => array(1),
    'access arguments' => array('view own profile'),
    'type' => MENU_LOCAL_TASK,