* @var string[]
*/
protected static $_paths = [
- 'add' => 'civicrm/admin/component?action=add&reset=1',
- 'update' => 'civicrm/admin/component?action=update&id=[id]&reset=1',
+ 'add' => 'civicrm/admin/component/edit?action=add&reset=1',
+ 'update' => 'civicrm/admin/component/edit?action=update&id=[id]&reset=1',
+ 'browse' => 'civicrm/admin/component?action=browse&id=[id]&reset=1',
];
/**
protected $_BAOName;
public function preProcess() {
- $this->_id = $this->get('id');
- $this->_BAOName = $this->get('BAOName');
+ $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this);
}
/**
if (isset($this->_id)) {
$params = ['id' => $this->_id];
- $baoName = $this->_BAOName;
- $baoName::retrieve($params, $defaults);
+ CRM_Mailing_BAO_MailingComponent::retrieve($params, $defaults);
}
else {
$defaults['is_active'] = 1;
<adminGroup>CiviMail</adminGroup>
<weight>410</weight>
</item>
+ <item>
+ <path>civicrm/admin/component/edit</path>
+ <title>Headers, Footers, and Automated Messages</title>
+ <page_callback>CRM_Mailing_Form_Component</page_callback>
+ <desc>Configure the header and footer used for mailings. Customize the content of automated Subscribe, Unsubscribe, Resubscribe and Opt-out messages.</desc>
+ <access_arguments>access CiviCRM,access CiviMail</access_arguments>
+ <adminGroup>CiviMail</adminGroup>
+ <weight>411</weight>
+ </item>
<item>
<path>civicrm/admin/options/from_email_address/civimail</path>
<title>From Email Addresses</title>
<comment>Stores information about the mailing components (header/footer).</comment>
<component>CiviMail</component>
<paths>
- <add>civicrm/admin/component?action=add&reset=1</add>
- <update>civicrm/admin/component?action=update&id=[id]&reset=1</update>
+ <add>civicrm/admin/component/edit?action=add&reset=1</add>
+ <update>civicrm/admin/component/edit?action=update&id=[id]&reset=1</update>
+ <browse>civicrm/admin/component?action=browse&id=[id]&reset=1</browse>
</paths>
<field>
<name>id</name>