function hacked_project_load in Hacked! 6.2
Same name and namespace in other branches
- 5 hacked.module \hacked_project_load()
- 6 hacked.module \hacked_project_load()
- 7.2 hacked.module \hacked_project_load()
Menu loader for loading a project from its short name.
In this function we call the calculate function both the update module and our hacked module. This may mean we return FALSE when there is no internet connection.
Parameters
$short_name: The short name of the project to load.
$ensure_downloaded: Should the project be downloaded to the local cache.
4 calls to hacked_project_load()
- drush_hacked_details in ./
hacked.drush.inc - Drush command callback that shows the list of changes/unchanged files in a project.
- drush_hacked_diff in ./
hacked.drush.inc - Drush command callback that shows the list of changes/unchanged files in a project.
- drush_hacked_drush_command_validate in ./
hacked.drush.inc - Validate hook for the hacked drush commands that need a project.
- drush_hacked_lock_modified in ./
hacked.drush.inc - Lock all of the modified files so that pm-updatecode will not touch them.
File
- ./
hacked.module, line 106 - The Hacked! module, shows which project have been changed since download.
Code
function hacked_project_load($short_name) {
module_load_include('inc', 'hacked', 'includes/hacked_project');
return new hackedProject($short_name);
}