You are here

function location_user_permission in Location 7.4

Same name and namespace in other branches
  1. 7.3 location_user.module \location_user_permission()

Implement hook_permission().

File

./location_user.module, line 11
Associate locations with users.

Code

function location_user_permission() {
  return array(
    'administer user locations' => array(
      'title' => t('Administer user locations'),
      'description' => t('Allow the user to edit the locations of any user.'),
    ),
    'set own user location' => array(
      'title' => t('Set own user location'),
      'description' => t('Allow the user to edit their own location.'),
    ),
    'view own user location' => array(
      'title' => t('View own user location'),
      'description' => t('Allow the user to see their own location.'),
    ),
    'view all user locations' => array(
      'title' => t('View all user locations'),
      'description' => t('Allow the user to see all user locations.'),
    ),
  );
}