*/
class CRM_Mailing_Info extends CRM_Core_Component_Info {
- // docs inherited from interface
+ /**
+ * @inheritDoc
+ */
protected $keyword = 'mailing';
- // docs inherited from interface
/**
+ * @inheritDoc
* @return array
*/
public function getInfo() {
$result = array();
$result['crmMailing'] = array(
'ext' => 'civicrm',
- 'js' => array('js/angular-crmMailing.js', 'js/angular-crmMailing/services.js', 'js/angular-crmMailing/directives.js'),
+ 'js' => array(
+ 'js/angular-crmMailing.js',
+ 'js/angular-crmMailing/*.js',
+ ),
'css' => array('css/angular-crmMailing.css'),
+ 'partials' => array('partials/crmMailing'),
);
$result['crmMailingAB'] = array(
'ext' => 'civicrm',
- 'js' => array('js/angular-crmMailingAB.js', 'js/angular-crmMailingAB/services.js', 'js/angular-crmMailingAB/directives.js'),
+ 'js' => array(
+ 'js/angular-crmMailingAB.js',
+ 'js/angular-crmMailingAB/*.js',
+ ),
'css' => array('css/angular-crmMailingAB.css'),
+ 'partials' => array('partials/crmMailingAB'),
);
$result['crmD3'] = array(
'ext' => 'civicrm',
- 'js' => array('js/angular-crmD3.js', 'bower_components/d3/d3.min.js'),
+ 'js' => array(
+ 'js/angular-crmD3.js',
+ 'bower_components/d3/d3.min.js',
+ ),
);
$config = CRM_Core_Config::singleton();
'contact_id' => $contactID,
));
$mesTemplate = civicrm_api3('MessageTemplate', 'get', array(
- 'sequential' => 1,
+ 'sequential' => 1,
'return' => array("msg_html", "id", "msg_title", "msg_subject", "msg_text"),
'workflow_id' => array('IS NULL' => ""),
));
'contactid' => $contactID,
'enableReplyTo' => isset($config->replyTo) ? $config->replyTo : 0,
'fromAddress' => array_values($fromAddress['values'][0]['api.OptionValue.get']['values']),
- 'defaultTestEmail' => civicrm_api3('Contact', 'getvalue', array('id' => 'user_contact_id', 'return' => 'email')),
+ 'defaultTestEmail' => civicrm_api3('Contact', 'getvalue', array(
+ 'id' => 'user_contact_id',
+ 'return' => 'email',
+ )),
'visibility' => array(
- array('value' => 'Public Pages', 'label' => ts('Public Pages')),
- array('value' => 'User and User Admin Only', 'label' => ts('User and User Admin Only')),
+ array('value' => 'Public Pages', 'label' => ts('Public Pages')),
+ array('value' => 'User and User Admin Only', 'label' => ts('User and User Admin Only')),
),
),
));
) ? TRUE : FALSE;
}
- // docs inherited from interface
/**
+ * @inheritDoc
* @param bool $getAllUnconditionally
*
* @return array
}
- // docs inherited from interface
/**
+ * @inheritDoc
* @return null
*/
public function getUserDashboardElement() {
return NULL;
}
- // docs inherited from interface
/**
+ * @inheritDoc
* @return array
*/
public function registerTab() {
);
}
- // docs inherited from interface
/**
+ * @inheritDoc
* @return array
*/
public function registerAdvancedSearchPane() {
return array(
- 'title' => ts('Mailings'),
+ 'title' => ts('Mailings'),
'weight' => 20,
);
}
- // docs inherited from interface
/**
+ * @inheritDoc
* @return null
*/
public function getActivityTypes() {
return NULL;
}
- // add shortcut to Create New
/**
+ * add shortcut to Create New
* @param $shortCuts
*/
public function creatNewShortcut(&$shortCuts) {