You are here

function PartyDefaultDataSetUIAdd::get_page_title in Party 8.2

Same name and namespace in other branches
  1. 7 includes/party.data_ui.inc \PartyDefaultDataSetUIAdd::get_page_title()

The page title for the action form.

Overrides PartyDataSetActionInterface::get_page_title

File

includes/party.data_ui.inc, line 75
Provides default classes for UI actions on data sets.

Class

PartyDefaultDataSetUIAdd
The 'add' action: attach a new entity.

Code

function get_page_title($party, $data_set, $eid = NULL) {
  $data_set_controller = party_get_crm_controller($party, $data_set['set_name']);
  return t("Add new @data-set-label to @party-label", array(
    '@data-set-label' => $data_set_controller
      ->getDataInfo('label'),
    '@party-label' => $party->label,
  ));
}