Changeset 5933


Ignore:
Timestamp:
Apr 21, 2010, 2:51:48 PM (14 years ago)
Author:
nikrou
Message:

Feature 1620 : add triggers on admin side for categories and batch mode.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin.php

    r5745 r5933  
    2929include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
    3030include_once(PHPWG_ROOT_PATH.'admin/include/functions_plugins.inc.php');
     31
     32trigger_action('loc_begin_admin');
    3133
    3234// +-----------------------------------------------------------------------+
     
    169171
    170172include(PHPWG_ROOT_PATH.'include/page_header.php');
     173
     174trigger_action('loc_end_admin');
     175
    171176$template->pparse('admin');
    172177
  • trunk/admin/cat_list.php

    r5196 r5933  
    3434check_status(ACCESS_ADMINISTRATOR);
    3535
     36trigger_action('loc_begin_cat_list');
     37
    3638if (!empty($_POST) or isset($_GET['delete']))
    3739{
     
    285287  $template->append('categories', $tpl_cat);
    286288}
     289
     290trigger_action('loc_end_cat_list');
     291
    287292// +-----------------------------------------------------------------------+
    288293// |                          sending html code                            |
  • trunk/admin/cat_modify.php

    r5920 r5933  
    3434check_status(ACCESS_ADMINISTRATOR);
    3535
     36trigger_action('loc_begin_cat_modify');
     37
    3638//---------------------------------------------------------------- verification
    3739if ( !isset( $_GET['cat_id'] ) || !is_numeric( $_GET['cat_id'] ) )
     
    556558}
    557559
     560trigger_action('loc_end_cat_modify');
     561
    558562//----------------------------------------------------------- sending html code
    559563$template->assign_var_from_handle('ADMIN_CONTENT', 'categories');
  • trunk/admin/element_set_global.php

    r5196 r5933  
    3939// +-----------------------------------------------------------------------+
    4040check_status(ACCESS_ADMINISTRATOR);
     41
     42trigger_action('loc_begin_element_set_global');
    4143
    4244// +-----------------------------------------------------------------------+
     
    477479}
    478480
     481trigger_action('loc_end_element_set_global');
     482
    479483//----------------------------------------------------------- sending html code
    480484$template->assign_var_from_handle('ADMIN_CONTENT', 'element_set_global');
  • trunk/admin/element_set_unit.php

    r5196 r5933  
    3939// +-----------------------------------------------------------------------+
    4040check_status(ACCESS_ADMINISTRATOR);
     41
     42trigger_action('loc_begin_element_set_unit');
    4143
    4244// +-----------------------------------------------------------------------+
     
    255257}
    256258
     259trigger_action('loc_end_element_set_unit');
     260
    257261// +-----------------------------------------------------------------------+
    258262// |                           sending html code                           |
Note: See TracChangeset for help on using the changeset viewer.