backend_contact_info

Adds custom content to contact-viewing page

Contacts

Input (passed by reference)

$params array Contact data array
$params['contact_id'] int Contact ID
… your plugin code …

Output

{$backend_contact_info.%plugin_id%.after_header}

Custom content to be displayed below header with contact name.

{$backend_contact_info.%plugin_id%.header}

Custom content to be displayed next to contact name.

{$backend_contact_info.%plugin_id%.before_top}

Custom content to be displayed above main contact fields.

{$backend_contact_info.%plugin_id%.after_top}

Custom content to be displayed above main contact fields.

{$backend_contact_info.%plugin_id%.photo}

Custom content to be displayed under contact photo.

{$backend_contact_info.%plugin_id%}
{$backend_contact_info.%plugin_id%.before_header}
{$backend_contact_info.%plugin_id%.top}
Contacts

Plugin code example

PHP

public function backendContactInfo($params)
{
    $contact_id = $params['contact_id'];
    return array(
        'after_header'  => 'Custom content to be displayed under contact name',
        'header'        => 'Custom content to be displayed next to contact name',
        'before_header' => 'Custom content to be displayed above contact name',
        'before_top'    => 'Custom content to be displayed above main contact fields',
        'after_top'     => 'Custom content to be displayed under main contact fields',
        'photo'         => 'Custom content to be displayed under contact photo',
    );
}