From 644a10c370308f09e99c13f84a258230186fa433 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 31 Jan 2019 15:38:21 -0800 Subject: [PATCH] Issue #3233 Example added to _blank plugin. --- e107_plugins/_blank/admin_config.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/e107_plugins/_blank/admin_config.php b/e107_plugins/_blank/admin_config.php index b65c2ed39..e6d61dddd 100644 --- a/e107_plugins/_blank/admin_config.php +++ b/e107_plugins/_blank/admin_config.php @@ -89,7 +89,7 @@ class plugin_blank_admin_ui extends e_admin_ui * * @var string */ - protected $pluginName = 'blank'; + protected $pluginName = '_blank'; /** * DB Table, table alias is supported @@ -282,12 +282,17 @@ class plugin_blank_admin_ui extends e_admin_ui protected $prefs = array( 'pref_type' => array('title'=> 'type', 'type'=>'text', 'data' => 'string', 'validate' => true), 'pref_folder' => array('title'=> 'folder', 'type' => 'boolean', 'data' => 'integer'), - 'pref_name' => array('title'=> 'name', 'type' => 'text', 'data' => 'string', 'validate' => 'regex', 'rule' => '#^[\w]+$#i', 'help' => 'allowed characters are a-zA-Z and underscore') + 'pref_name' => array('title'=> 'name', 'type' => 'text', 'data' => 'string', 'validate' => 'regex', 'rule' => '#^[\w]+$#i', 'help' => 'allowed characters are a-zA-Z and underscore'), + 'pref_classes' => array('title'=> 'classes', 'type' => 'userclasses', 'data' => 'array') + ); // optional public function init() { + $pref = e107::pref('_blank'); + e107::getDebug()->log($pref); + }