* Plugin Name: GLM Members Database
* Plugin URI: http://www.gaslightmedia.com/
* Description: Gaslight Media Members Database.
- * Version: 2.9.12
+ * Version: 2.9.13
* Author: Gaslight Media
* Author URI: http://www.gaslightmedia.com/
* License: GPL2
* @package glmMembersDatabase
* @author Chuck Scott <cscott@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
- * @version 2.9.12
+ * @version 2.9.13
*/
/*
return false;
}
+ // Check for option to force picklists
+ $alwaysList = (isset($f['force_list']) && $f['force_list']);
+$forEdit = true;
+
// Build bitmap array
$bitmap = array();
$bitmapNames = array();
while (list($k, $v) = each($f['bitmap'])) {
// If appropriate or requested, build picklists
- if ($this->optionIncludeSelectListData || $forEdit ) {
+ if ($this->optionIncludeSelectListData || $forEdit || $alwaysList) {
$bitmap[$k] = array(
'name' => $v,
'nameEsc' => addslashes($v),
// Check if this option has been selected
$powVal = pow(2, $k);
if (($powVal & $d) > 0) {
- if ($this->optionIncludeSelectListData || $forEdit ) {
+ if ($this->optionIncludeSelectListData || $forEdit || $alwaysList) {
$bitmap[$k]['default'] = true;
}
$bitmapNames[$k] = $v;