''"); while ($action = db_fetch_object($result)) { $key = md5($action->aid); $parameters = unserialize($action->parameters); $operations[$key] = $action->callback . (empty($parameters) ? '' : ':'. md5($action->parameters)); } foreach (array_keys(actions_list()) as $callback) { $key = md5($callback); $operations[$key] = $callback; } foreach (views_get_all_views() as $name => $view) { $changed = FALSE; foreach (array_keys($view->display) as $display) { $display_options = &$view->display[$display]->display_options; if (isset($display_options['style_plugin']) && $display_options['style_plugin'] == 'bulk') { $changed = TRUE; $selected_operations = $display_options['style_options']['selected_operations']; $display_options['style_options']['selected_operations'] = array(); foreach (array_filter($selected_operations) as $operation) { // If an old operation is identified, replace it. $display_options['style_options']['selected_operations'][] = isset($operations[$operation]) ? $operations[$operation] : $operation; } } } if ($changed) { $view->save(); views_object_cache_clear('view', $name); } } cache_clear_all('*', 'cache_views'); return array(); }