| 1 |
<?php |
<?php |
| 2 |
// $Id: common.inc,v 1.1.2.11 2009/10/24 12:57:23 joachim Exp $ |
// $Id: common.inc,v 1.1.2.12 2009/10/24 14:27:42 joachim Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file common.inc |
* @file common.inc |
| 126 |
} |
} |
| 127 |
|
|
| 128 |
/** |
/** |
| 129 |
|
* Update hook files and process them to our data file. |
| 130 |
|
* |
| 131 |
|
* This is the master function to call from either UI, drush or drupal. |
| 132 |
|
*/ |
| 133 |
|
function module_builder_update_data() { |
| 134 |
|
// Update the hook documentation. |
| 135 |
|
module_builder_include('update'); |
| 136 |
|
$hook_files = module_builder_update_documentation(); |
| 137 |
|
|
| 138 |
|
// Process the hook files. |
| 139 |
|
module_builder_include('process'); |
| 140 |
|
module_builder_process_hook_data($hook_files); |
| 141 |
|
|
| 142 |
|
// Set the last updated variable |
| 143 |
|
// TODO: skip this if no bootstrap. |
| 144 |
|
variable_set('module_builder_last_update', format_date(time())); |
| 145 |
|
|
| 146 |
|
return TRUE; // FTW! |
| 147 |
|
} |
| 148 |
|
|
| 149 |
|
/** |
| 150 |
* Get a directory to save or read hook data files. |
* Get a directory to save or read hook data files. |
| 151 |
* |
* |
| 152 |
* This is either the variable from Drupal, or the --data option. |
* This is either the variable from Drupal, or the --data option. |