You are here

function _drupalchat_remove_extension in DrupalChat 6.2

Same name and namespace in other branches
  1. 7.2 drupalchat.admin.inc \_drupalchat_remove_extension()
  2. 7 drupalchat.admin.inc \_drupalchat_remove_extension()
1 call to _drupalchat_remove_extension()
_drupalchat_load_themes in ./drupalchat.admin.inc

File

./drupalchat.admin.inc, line 338
Administrative functions to configure DrupalChat.

Code

function _drupalchat_remove_extension($strName) {
  $ext = strrchr($strName, '.');
  if ($ext !== false) {
    $strName = substr($strName, 0, -strlen($ext));
  }
  return $strName;
}