You are here

function module_builder_update_data in Module Builder 6.2

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

Update hook files and process them to our data file.

This is the master function to call from either UI, drush or drupal.

2 calls to module_builder_update_data()
module_builder_admin_update_submit in includes/module_builder.admin.inc
Admin hook update form submit handler.
module_builder_callback_hook_download in drush/module_builder.drush.inc
Callback for downloading hook data.

File

includes/common.inc, line 144
common.inc Stuff needed both by module and drush command.

Code

function module_builder_update_data() {

  // Update the hook documentation.
  module_builder_include('update');
  $hook_files = module_builder_update_documentation();

  // Process the hook files.
  module_builder_include('process');
  module_builder_process_hook_data($hook_files);
  return TRUE;

  // FTW!
}