|
@@ -113,7 +113,7 @@ function _url_replace_filter_settings_form_submit($form, &$form_state) {
|
|
|
if (empty($form_state['values'][$format_id])) {
|
|
|
drupal_set_message(t('URL Replace filter configuration is empty : you could <a href="!edit">remove it</a> from this input format.', array(
|
|
|
'!edit' => check_url(url('admin/settings/filters/1')),
|
|
|
- )), 'warning');
|
|
|
+ )), 'warning');
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -131,7 +131,9 @@ function _url_replace_filter_row_form(&$form, $format, $index, $original, $repla
|
|
|
}
|
|
|
|
|
|
function _url_replace_filter_get_settings($format) {
|
|
|
- return variable_get('url_replace_filter_'. $format, array(0 => array('original' => '', 'replacement' => '')));
|
|
|
+ return variable_get('url_replace_filter_'. $format, array(
|
|
|
+ 0 => array('original' => '', 'replacement' => ''),
|
|
|
+ ));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -198,7 +200,7 @@ function url_replace_filter_form_system_modules_alter(array &$form) {
|
|
|
|
|
|
// Description might have been altered, so do not rely on its default value.
|
|
|
$description = isset($form['description'][$machine_name]['#value'])
|
|
|
- ? $form['description'][$machine_name]['#value']
|
|
|
+ ? $form['description'][$machine_name]['#value']
|
|
|
: $human_name;
|
|
|
|
|
|
$format_ids = _url_replace_filter_get_formats();
|
|
@@ -216,8 +218,8 @@ function url_replace_filter_form_system_modules_alter(array &$form) {
|
|
|
$links_array[$format_id] = t($text, array('!link' => $link));
|
|
|
}
|
|
|
$links = implode(', ', $links_array);
|
|
|
- $form['description'][$machine_name]['#value'] = $description
|
|
|
- . t(' (Configure in !urls)', array('!urls' => $links));
|
|
|
+ $form['description'][$machine_name]['#value'] = $description .' '.
|
|
|
+ t('(Configure in !urls)', array('!urls' => $links));
|
|
|
}
|
|
|
|
|
|
/**
|