function access_filter_get_all_aliases in Access Filter 7
Get all aliases for path.
Parameters
string $path: A string of path.
Return value
array An array of alias strings.
1 call to access_filter_get_all_aliases()
- access_filter_check_access in ./
access_filter.module - Check the access matches to filter.
File
- ./
access_filter.module, line 349 - Allows users to manage access filters.
Code
function access_filter_get_all_aliases($path) {
$source_path = drupal_lookup_path('source', $path);
if ($source_path === FALSE) {
$source_path = $path;
}
$paths = array(
$source_path,
);
$result = db_select('url_alias', 'ua')
->fields('ua', array(
'alias',
))
->condition('source', $source_path)
->execute();
while ($obj = $result
->fetchObject()) {
$paths[] = $obj->alias;
}
return $paths;
}