function opf_move_down_one($name) { $name = opf_check_name($name); if (!$name) { return FALSE; } $pos = opf_get_position($name); $type = opf_get_type($name); if ($pos !== FALSE && $type !== FALSE) { $max = opf_get_position_max($type); if ($max && $pos < $max) { $pos_new = $pos + 1; return opf_switch_position($type, $pos, $pos_new); } } return FALSE; }
} else { $filter['css_link'] = ''; } if ($filter['helppath']) { $filter['helppath'] = str_replace('{SYSVAR:WB_URL}', WB_URL, $filter['helppath']); $filter['helppath'] = str_replace('{OPF:PLUGIN_URL}', OPF_PLUGINS_URL . $filter['plugin'], $filter['helppath']); $filter['helppath_onclick'] = "javascript: return opf_popup('{$filter['helppath']}');"; } else { $filter['helppath_onclick'] = ''; } if ($filter['position'] != opf_get_position_min($filter['type'])) { $filter['moveup_link'] = "{$ToolUrl}&id={$filter_id}&dir=up"; } else { $filter['moveup_link'] = ''; } if ($filter['position'] != opf_get_position_max($filter['type'])) { $filter['movedown_link'] = "{$ToolUrl}&id={$filter_id}&dir=down"; } else { $filter['movedown_link'] = ''; } if ($filter['userfunc'] || $filter['plugin']) { $filter['delete_link'] = $ToolUrl . "&id={$filter_id}&delete=1"; $filter['export_link'] = $ToolUrl . "&id={$filter_id}&export=1"; $filter['convert_link'] = $ToolUrl . "&id={$filter_id}&convert=1"; } else { $filter['delete_link'] = ''; $filter['export_link'] = ''; $filter['convert_link'] = ''; } $filter['type'] = $types[$filter['type']]; $filterlist[] = $filter;