1 drupal.inc drupal_valid_path($path, $dynamic_allowed = FALSE)

Checks a path exists and the current user has access to it.

Deprecated

since 1.0.0

See also

backdrop_valid_path()

Related topics

File

core/includes/drupal.inc, line 2239
Contains constants and function wrappers for Drupal 7.x compatibility.

Code

function drupal_valid_path($path, $dynamic_allowed = FALSE) {
  watchdog_deprecated_function('drupal', __FUNCTION__);
  return backdrop_valid_path($path, $dynamic_allowed);
}