1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

FAQs now triggers events on create/update/delete. AdminUI: Removed unnecessary data from default event trigger.

This commit is contained in:
Cameron
2015-06-06 13:17:58 -07:00
parent 143784974d
commit e75498fa5d
4 changed files with 20 additions and 6 deletions

View File

@@ -48,6 +48,11 @@ class faq_admin extends e_admin_dispatcher
// 'main/custom' => array('caption'=> 'Custom Page', 'perm' => '0')
);
protected $perm = array(
'main/prefs' => '0'
);
protected $adminMenuAliases = array(
'main/edit' => 'main/list'
);
@@ -70,6 +75,7 @@ class faq_cat_ui extends e_admin_ui
{
protected $pluginTitle = LAN_PLUGIN_FAQS_NAME;
protected $pluginName = 'plugin';
protected $table = "faqs_info";
protected $pid = "faq_info_id";
protected $perPage = 5; //no limit
@@ -171,9 +177,10 @@ class faq_cat_form_ui extends e_admin_form_ui
class faq_main_ui extends e_admin_ui
{
//TODO Move to Class above.
protected $pluginTitle = 'FAQs';
protected $pluginName = 'faqs';
protected $eventName = 'faqs';
protected $table = "faqs";
// without any Order or Limit.