array( 'controller' => 'plugin_facebook_admin_ui', 'path' => null, 'ui' => 'plugin_facebook_admin_form_ui', 'uipath' => null ) ); protected $adminMenu = array( 'main/prefs' => array('caption'=> LAN_PREFS, 'perm' => '0'), ); protected $adminMenuAliases = array( 'main/edit' => 'main/list' ); /** * Navigation menu title * @var string */ protected $menuTitle = 'facebook Menu'; } class plugin_facebook_admin_ui extends e_admin_ui { // required protected $pluginTitle = "e107 facebook"; protected $pluginName = 'facebook'; // protected $table = "facebook"; // optional, if $pluginName == 'core', core prefs will be used, else e107::getPluginConfig($pluginName); protected $prefs = array( 'appId' => array('title'=> 'Facebook AppId', 'type'=>'text', 'data' => 'string', 'validate' => true), 'appSecret' => array('title'=> 'Facebook AppSecret', 'type'=>'text', 'data' => 'string', 'validate' => true), // 'xfbml' => array('title'=> 'xfbml', 'type' => 'boolean', 'data' => 'int'), // 'oauth' => array('title'=> 'oAuth', 'type' => 'boolean', 'data' => 'int') ); // optional public function init() { } } class plugin_facebook_admin_form_ui extends e_admin_form_ui { }