diff --git a/better_exposed_filters_exposed_form_plugin.inc b/better_exposed_filters_exposed_form_plugin.inc index 69b38c2..9fd53d0 100644 --- a/better_exposed_filters_exposed_form_plugin.inc +++ b/better_exposed_filters_exposed_form_plugin.inc @@ -328,6 +328,9 @@ Title Desc|Z -> A Leave the replacement value blank to remove an option al $display_options['bef_links'] = t('Links'); $display_options['bef_hidden'] = t('Hidden'); } + + // Allow other modules to add widgets + drupal_alter('bef_widget_info', $display_options); $identifier = '"' . $filter->options['expose']['identifier'] . '"'; if (!empty($filter->options['expose']['label'])) { @@ -1312,6 +1315,9 @@ Title Desc|Z -> A Leave the replacement value blank to remove an option al break; } /* Ends switch ($options['bef_format']) */ + + // Allow other modules to alter the widget + drupal_alter('bef_widget_form', $form, $field_id, $options['bef_format']); // Check if this is a secondary form element. if ($allow_secondary && $settings[$label]['more_options']['is_secondary']) {