SproutCMS

This is the code documentation for the SproutCMS project

function emailText()

Register an email text

Usage

void Register::emailText ( string $code , array $field_defs , string $default_html_view );

Arguments

  1. string $code
    The template code
           e.g. user.welcome
  2. array $field_defs
    An array of name => description field definitions, for the admin
           e.g. array('first_name' => 'First name of the new user)
  3. string $default_html_view
    The view name for the default text. Must be a .htm view
           e.g 'email/user_welcome'

Return value

  • void