You are here

function responsive_favicons_update_7100 in Responsive Favicons 7

Tidy up the tags variable.

File

./responsive_favicons.install, line 63
Responsive favicons install file.

Code

function responsive_favicons_update_7100() {
  $tags = variable_get('responsive_favicons_tags', array());
  if (!empty($tags)) {
    $new_tags = array();
    foreach ($tags as $pos => $tag) {
      if (!empty($tag)) {
        $new_tags[] = trim($tag);
      }
    }
    variable_set('responsive_favicons_tags', $new_tags);
  }
}