Commit d961f5eb authored by Dries's avatar Dries

- Patch #826380 by David_Rothstein, sun: empty filter objects for...

- Patch #826380 by David_Rothstein, sun: empty filter objects for new/unconfigured filters are incomplete.
parent e44834ef
......@@ -172,6 +172,9 @@ function filter_admin_format_form($form, &$form_state, $format) {
// Create an empty filter object for new/unconfigured filters.
if (!isset($filters[$name])) {
$filters[$name] = new stdClass();
$filters[$name]->format = $format->format;
$filters[$name]->module = $filter['module'];
$filters[$name]->name = $name;
$filters[$name]->status = 0;
$filters[$name]->weight = $filter['weight'];
$filters[$name]->settings = array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment