function ga_login_permission in Google Authenticator login 7
Implements hook_permission().
File
- ./
ga_login.module, line 121 - Main ga_login module.
Code
function ga_login_permission() {
return array(
'create own login code once' => array(
'title' => t('Create own login code only once'),
'description' => t('Allows users to create their own GA login code only once and deny further generations.'),
),
'create own login code' => array(
'title' => t('Create own login code'),
'description' => t('Allows users to create their own GA login code (more than once).'),
),
'delete own login code' => array(
'title' => t('Delete own login code'),
'description' => t('Allows users to delete their own GA login code.'),
),
'create others login codes' => array(
'title' => t("Create others' login codes"),
'description' => t("Allows users to create others' GA login codes"),
'restrict access' => TRUE,
),
'delete others login codes' => array(
'title' => t("Delete others' login codes"),
'description' => t("Allows users to delete others' GA login codes"),
'restrict access' => TRUE,
),
'login without code' => array(
'title' => t('Login without code'),
'description' => t("With this permission, users don't have to fill in the GA login code"),
'restrict access' => TRUE,
),
'require code' => array(
'title' => t('Require code'),
'description' => t('With this permission, users are required to fill in the GA login code. Trumps "login without code".'),
'restrict access' => TRUE,
),
'administer ga_login settings' => array(
'title' => t('Administer GA login settings'),
'description' => t('Administer Google Authenticator login settings'),
'restrict access' => TRUE,
),
);
}