You are here

function hacked_project_load in Hacked! 7.2

Same name and namespace in other branches
  1. 5 hacked.module \hacked_project_load()
  2. 6.2 hacked.module \hacked_project_load()
  3. 6 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
Command callback for drush hacked_details.
drush_hacked_diff in ./hacked.drush.inc
Command callback for drush hacked_diff.
drush_hacked_drush_command_validate in ./hacked.drush.inc
Generic validator for hacked drush commands.
drush_hacked_lock_modified in ./hacked.drush.inc
Lock modified files so that pm-updatecode won't touch them.

File

./hacked.module, line 100
The Hacked! module, shows which project have been changed since download.

Code

function hacked_project_load($short_name) {
  return new hackedProject($short_name);
}