-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmetadata.php
More file actions
24 lines (21 loc) · 1.05 KB
/
metadata.php
File metadata and controls
24 lines (21 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/**
* Options for the authsplit plugin
*
* @author Pieter Hollants <pieter@hollants.com>
*/
/* Define a custom "authtype" class that does not show authsplit */
if (!class_exists('setting_authtype_nosplit')) {
class setting_authtype_nosplit extends setting_authtype {
function initialize($default, $local, $protected) {
parent::initialize($default, $local, $protected);
$this->_choices = array_diff($this->_choices, array("authsplit"));
}
}
}
$meta['primary_authplugin'] = array('authtype_nosplit', '_cautionList' => array('plugin____authsplit____primary_authplugin' => 'danger'));
$meta['secondary_authplugin'] = array('authtype_nosplit', '_cautionList' => array('plugin____authsplit____secondary_authplugin' => 'danger'));
$meta['autocreate_users'] = array('onoff');
$meta['debug'] = array('onoff');
$meta['fallback_authplugin'] = array('authtype_nosplit', '_cautionList' => array('plugin____authsplit____secondary_authplugin' => 'danger'));
$meta['use_fallback'] = array('onoff');