You are here

function _name_format_add_component in Name Field 7

Same name and namespace in other branches
  1. 6 includes/name.parser.inc \_name_format_add_component()
1 call to _name_format_add_component()
_name_format in includes/name.parser.inc
@todo Look at replacing the raw string functions with the Drupal equivalent functions. Will need to test this carefully...

File

includes/name.parser.inc, line 273
Provides the functionality and information about the Name module name parsing engine.

Code

function _name_format_add_component($string, &$modifiers = '', &$conditions = '') {
  $string = _name_format_apply_modifiers($string, $modifiers);
  $piece = array(
    'value' => $string,
    'conditions' => $conditions,
  );
  $conditions = '';
  $modifiers = '';
  return $piece;
}