You are here

function hosting_subdirs_is_a_subdir in Hosting 7.4

Same name and namespace in other branches
  1. 7.3 subdirs/hosting_subdirs.module \hosting_subdirs_is_a_subdir()

Determine whether a URL is a subdirectory site.

3 calls to hosting_subdirs_is_a_subdir()
hosting_subdirs_hosting_site_domain_alter in subdirs/hosting_subdirs.module
Implements hook_hosting_site_domain_alter().
hosting_subdirs_node_presave in subdirs/hosting_subdirs.module
Implements hook_node_presave().
_hosting_subdirs_is_a_subdir_site in subdirs/hosting_subdirs.module
Helper function to determine whether a hosted site is using a subdirectory URL.

File

subdirs/hosting_subdirs.module, line 140
Allow sites to be installed in subdirectories.

Code

function hosting_subdirs_is_a_subdir($url) {
  if (@strpos($url, '/') === FALSE) {
    return FALSE;
  }
  return TRUE;
}