本文整理汇总了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'])) {