Community Documentation

Custom Module Tools

Last updated February 21, 2012. Created by Jon Pugh on April 20, 2009.
Edited by jhodgdon, arianek, add1sun, greggles. Log in to edit this page.

Here's a walkthrough for how to use Custom Module Updates module.

  1. Module Updates administration

    Enter your custom module's name to start tracking form submits.
  2. Example: Add a role

    Submit some forms and check the box to track the submission.
  3. See the confirmation and link back to the update.
  4. Example: Site Config

    Don't forget to check the box! A message always helps too.
  5. View Updates

    Select which form submissions you would like to export
  6. Update .install code for your custom module

    Select which form submissions you would like to export
  7. Save hook_update_N and the include file, upload to live site
  8. Run update.php
  9. Return to admin/reports/custom_module_updates to select and execute the updates

The exported update function simply inserts the updates data into the live database, since there are problems with executing all the forms directly in the batch update process.

Once that is done, simply visit the update admin page to execute the form submissions, again choosing which ones you want.

AttachmentSize
Updates Page.gif28.89 KB
Add Role.gif22.35 KB
Form submit confirmation.gif29.41 KB
Site Information.gif17.97 KB
Exporting Updates.gif18.05 KB
Install File Code.gif28.34 KB

Page status

About this page

Drupal version
Drupal 6.x
Audience
Designers/themers, Programmers, Site administrators

Archive

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.
nobody click here