You are here

function mobile_number_permission in Mobile Number 7

Implements hook_permission().

File

./mobile_number.module, line 34
mobile_number.module

Code

function mobile_number_permission() {
  $permissions = array();
  $permissions['bypass mobile number verification requirement'] = array(
    'title' => t('Bypass mobile number verification requirement'),
    'description' => t('Allow saving unverified numbers when verification is required.'),
    'restrict access' => TRUE,
  );
  if (module_exists('services')) {
    $permissions['access mobile number services api'] = array(
      'title' => t('Access mobile number services api'),
      'description' => t('Allow using services api such as request verification code.'),
    );
  }
  return $permissions;
}