Community Documentation

3. Providing default configurations

Last updated November 19, 2007. Created by Amitaibu on July 4, 2007.
Edited by Michelle, fago. Log in to edit this page.

Each module can add workflow-ng configurations. These configurations are default and can be altered by users (unless other specified). E.g. this allows modules to use workflow-ng for sending mail notifications while users are able to customize the mail texts.

To do this you need to implement:
Hook: hook_configuration
Returns: An array of configurations.

There are basically two ways to do this. The configurations are specified in a form API style structured arrays, so you can write this arrays yourself or you can workflow-ng's helper function workflow_ng_configure() to do it.

This examples show how configurations can be created by using the example configuration of workflow-ng, which just prints the content title of pages and stories, when they are viewed.

About this page

Drupal version
Drupal 5.x
Drupal’s online documentation is © 2000-2012 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.
nobody click here