/[drupal]/contributions/modules/module_builder/includes/common.inc
ViewVC logotype

Diff of /contributions/modules/module_builder/includes/common.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.2.12, Sat Oct 24 14:27:42 2009 UTC revision 1.1.2.13, Sat Oct 24 19:19:55 2009 UTC
# Line 1  Line 1 
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
# Line 126  function _module_builder_check_hook_data Line 126  function _module_builder_check_hook_data
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.

Legend:
Removed from v.1.1.2.12  
changed lines
  Added in v.1.1.2.13

  ViewVC Help
Powered by ViewVC 1.1.2