function _paranoia_dir_is_beginning_of_dirs in Paranoia 7
Checks to see which dirs are the beginning of an enabled dir.
Parameters
string $disabled_project_dir: The disabled project directory.
array $enabled_parent_dirs: An array of strings listing directories with enabled projects.
Return value
bool True if the disabled dir is the beginning of any of the enabled dirs.
1 call to _paranoia_dir_is_beginning_of_dirs()
- drush_paranoia_list_projects_to_delete in ./
paranoia.drush.inc - Callback for paranoia-list-projects-to-delete.
File
- ./
paranoia.drush.inc, line 235 - Drush integration for the paranoia module.
Code
function _paranoia_dir_is_beginning_of_dirs($disabled_project_dir, $enabled_parent_dirs) {
foreach ($enabled_parent_dirs as $enabled_parent_dir) {
if (strpos($enabled_parent_dir, $disabled_project_dir) === 0) {
return TRUE;
}
}
return FALSE;
}