-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SITES-380: Block Views Contextual Filters PHP with Paranoia (#32)
* SITES-380: Block Views Contextual Filters PHP with Paranoia * fixup! Merge in latest changes from paranoia-7.x-1.x
- Loading branch information
Showing
4 changed files
with
244 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
docroot/sites/all/modules/contrib/paranoia/paranoia.admin.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Defines administration form for Paranoia module. | ||
*/ | ||
|
||
/** | ||
* Administration form. | ||
*/ | ||
function paranoia_admin_form() { | ||
$form = array(); | ||
|
||
$form['paranoia_access_threshold'] = array( | ||
'#type' => 'textfield', | ||
'#title' => t('User access threshold (in days)'), | ||
'#default_value' => variable_get('paranoia_access_threshold', 730), | ||
'#description' => t('Accounts that go unaccessed for more than this number | ||
of days can have their passwords randomized using the "drush | ||
paranoia-reset-stale-accounts" command.'), | ||
); | ||
$form['paranoia_email_notification'] = array( | ||
'#type' => 'checkbox', | ||
'#title' => t('Email affected users'), | ||
'#default_value' => variable_get('paranoia_email_notification', FALSE), | ||
'#description' => t('Check this box to notify users by email when their | ||
account passwords have been randomized.'), | ||
); | ||
|
||
return system_settings_form($form); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters