You are here

function isbn_clean in ISBN Field 6

Helper function for cleaning dashes and spaces

3 calls to isbn_clean()
isbn_field in ./isbn.module
Implementation of hook_field(). http://drupal.org/node/342996
isbn_validate_number in ./isbn.module
theme_isbn_formatter_clean in ./isbn.module
Theme function for 'clean' ISBN field formatter Removes dashes and spaces.

File

./isbn.module, line 332
Defines ISBN field types.

Code

function isbn_clean($string) {
  return str_replace(array(
    'x',
    'X',
    ' ',
    '-',
    '.',
  ), '', $string);
}