Commit cdbeb766 authored by Dmytrii Kaiun's avatar Dmytrii Kaiun Committed by Taras Kruts
Browse files

Issue #3250345 by tBKoT: Change the process of converting a term name to a...

Issue #3250345 by tBKoT: Change the process of converting a term name to a machine-readable name (#2612)
parent 893191c5
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -563,10 +563,7 @@ function social_tagging_form_views_exposed_form_alter(&$form, FormStateInterface
 *   A machine name so it can be used pogrammatically.
 */
function social_tagging_to_machine_name($text) {
  $text = strtolower($text);
  $text = str_replace(' ', '', $text);

  return $text;
  return preg_replace('@[^a-z0-9-]+@', '_', strtolower($text));
}

/**