/functions/identity.php

Description

identity.php

This contains utility functions for dealing with multiple identities

Includes
include_once (SM_PATH.'include/load_prefs.php') (line 20)
Constants
SM_PATH = '../' (line 17)

Used to simplify includes

Functions
empty_identity (line 259)

Function to test if identity is empty

boolean empty_identity ( $ident, array $identity)
  • array $identity: Identity Array
  • $ident
get_identities (line 27)

Returns an array of all the identities.

Array is keyed: full_name, reply_to, email_address, index, signature

  • return: full_name,reply_to,email_address,index,signature
array get_identities ()
save_identities (line 67)

Function to save the identities array

void save_identities (array $identities)
  • array $identities: Array of identities
sqfixidentities (line 121)

Returns an array with a fixed set of identities

array sqfixidentities (array $identities, int $id, string $action, [boolean $override_edit_identity = FALSE])
  • array $identities: Array of identities
  • int $id: Identity to modify
  • string $action: Action to perform
  • boolean $override_edit_identity: For use by plugins where the incoming identities array is trusted (OPTIONAL; default FALSE)

Documentation generated on Mon, 13 Jan 2020 04:24:43 +0100 by phpDocumentor 1.4.3