You are here

function module_builder_get_hook_data_last_updated in Module Builder 6.2

Same name and namespace in other branches
  1. 7 includes/process.inc \module_builder_get_hook_data_last_updated()

Get the timestamp of the processed file.

2 calls to module_builder_get_hook_data_last_updated()
module_builder_admin_update in includes/module_builder.admin.inc
Admin hook update form.
module_builder_callback_hook_list in drush/module_builder.drush.inc
Callback to list known hooks.

File

includes/process.inc, line 108
Module builder code processing code.

Code

function module_builder_get_hook_data_last_updated($directory = NULL) {
  if (!isset($directory)) {
    $directory = _module_builder_get_hooks_directory();
  }
  $hooks_file = "{$directory}/hooks_processed.php";
  if (file_exists($hooks_file)) {
    $timestamp = filemtime($hooks_file);
    return format_date($timestamp, 'large');
  }
}