本文整理匯總了PHP中Toolbar::deleteAllCustomTools方法的典型用法代碼示例。如果您正苦於以下問題:PHP Toolbar::deleteAllCustomTools方法的具體用法?PHP Toolbar::deleteAllCustomTools怎麽用?PHP Toolbar::deleteAllCustomTools使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Toolbar
的用法示例。
在下文中一共展示了Toolbar::deleteAllCustomTools方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
$comments = false;
}
foreach ($sections as $skey => $sval) {
if ($prefs['toolbar_' . $skey . ($comments ? '_comments' : '') . 'modified'] == 'y') {
$sections[$skey] = $sval . ' *';
}
}
$view_mode = isset($_REQUEST['view_mode']) ? $_REQUEST['view_mode'] : '';
if ($view_mode === 'sheet' && $section !== 'sheet') {
$view_mode = '';
$_REQUEST['view_mode'] = '';
}
$smarty->assign('view_mode', $view_mode);
if (!empty($_REQUEST['reset_all_custom_tools'])) {
$access->check_authenticity(tra('Are you sure you want to delete all your custom tools?'));
Toolbar::deleteAllCustomTools();
$access->redirect('tiki-admin_toolbars.php');
}
if (isset($_REQUEST['save'], $_REQUEST['pref'])) {
$prefName = 'toolbar_' . $section . ($comments ? '_comments' : '');
$tikilib->set_preference($prefName, $_REQUEST['pref']);
$tikilib->set_preference($prefName . 'modified', 'y');
}
if (isset($_REQUEST['reset']) && $section != 'global' || isset($_REQUEST['reset_global']) && $section == 'global') {
$prefName = 'toolbar_' . $section . ($comments ? '_comments' : '');
$tikilib->delete_preference($prefName);
$tikilib->set_preference($prefName . 'modified', 'n');
$smarty->loadPlugin('smarty_function_query');
header('location: ?' . smarty_function_query(array('_urlencode' => 'n'), $smarty));
}
if (!empty($_REQUEST['save_tool']) && !empty($_REQUEST['tool_name'])) {