mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 01:42:29 +02:00
Feature 1620 : add triggers on admin side for categories and batch mode.
git-svn-id: http://piwigo.org/svn/trunk@5933 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -33,6 +33,8 @@ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
|
||||
// +-----------------------------------------------------------------------+
|
||||
check_status(ACCESS_ADMINISTRATOR);
|
||||
|
||||
trigger_action('loc_begin_cat_list');
|
||||
|
||||
if (!empty($_POST) or isset($_GET['delete']))
|
||||
{
|
||||
check_pwg_token();
|
||||
@@ -284,6 +286,9 @@ foreach ($categories as $category)
|
||||
}
|
||||
$template->append('categories', $tpl_cat);
|
||||
}
|
||||
|
||||
trigger_action('loc_end_cat_list');
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | sending html code |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
@@ -33,6 +33,8 @@ include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php');
|
||||
// +-----------------------------------------------------------------------+
|
||||
check_status(ACCESS_ADMINISTRATOR);
|
||||
|
||||
trigger_action('loc_begin_cat_modify');
|
||||
|
||||
//---------------------------------------------------------------- verification
|
||||
if ( !isset( $_GET['cat_id'] ) || !is_numeric( $_GET['cat_id'] ) )
|
||||
{
|
||||
@@ -555,6 +557,8 @@ SELECT
|
||||
);
|
||||
}
|
||||
|
||||
trigger_action('loc_end_cat_modify');
|
||||
|
||||
//----------------------------------------------------------- sending html code
|
||||
$template->assign_var_from_handle('ADMIN_CONTENT', 'categories');
|
||||
?>
|
||||
?>
|
||||
@@ -39,6 +39,8 @@ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
|
||||
// +-----------------------------------------------------------------------+
|
||||
check_status(ACCESS_ADMINISTRATOR);
|
||||
|
||||
trigger_action('loc_begin_element_set_global');
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | deletion form submission |
|
||||
// +-----------------------------------------------------------------------+
|
||||
@@ -476,6 +478,8 @@ SELECT id,path,tn_ext,file,filesize,level
|
||||
}
|
||||
}
|
||||
|
||||
trigger_action('loc_end_element_set_global');
|
||||
|
||||
//----------------------------------------------------------- sending html code
|
||||
$template->assign_var_from_handle('ADMIN_CONTENT', 'element_set_global');
|
||||
?>
|
||||
|
||||
@@ -39,6 +39,8 @@ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
|
||||
// +-----------------------------------------------------------------------+
|
||||
check_status(ACCESS_ADMINISTRATOR);
|
||||
|
||||
trigger_action('loc_begin_element_set_unit');
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | unit mode form submission |
|
||||
// +-----------------------------------------------------------------------+
|
||||
@@ -254,6 +256,8 @@ SELECT
|
||||
$template->assign('ELEMENT_IDS', implode(',', $element_ids));
|
||||
}
|
||||
|
||||
trigger_action('loc_end_element_set_unit');
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | sending html code |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
Reference in New Issue
Block a user