)
);
- $this->add('submit', $this->_printButtonName, ts('Print'),
- array(
- 'class' => 'form-submit',
- 'id' => 'Print',
- 'onclick' => "return checkPerformAction('mark_x', '" . $this->getName() . "', 1, 1);",
- )
- );
-
$this->setDefaultAction('refresh');
}
if ($this->_context === 'amtg') {
$defaults['task'] = CRM_Contact_Task::GROUP_CONTACTS;
}
- else {
- $defaults['task'] = CRM_Contact_Task::PRINT_CONTACTS;
- }
$defaults['privacy_toggle'] = 1;
if ($this->_context === 'amtg') {
$defaults['task'] = CRM_Contact_Task::GROUP_CONTACTS;
}
- else {
- $defaults['task'] = CRM_Contact_Task::PRINT_CONTACTS;
- }
if ($this->_context === 'smog') {
$defaults['group_contact_status[Added]'] = TRUE;
* @access protected
*/
function taskName($controller, $formName = 'Search') {
- // total hack, check POST vars and then session to determine stuff
- // fix value if print button is pressed
- if (CRM_Utils_Array::value('_qf_' . $formName . '_next_print', $_POST)) {
- $value = CRM_Contact_Task::PRINT_CONTACTS;
- }
- else {
- $value = CRM_Utils_Array::value('task', $_POST);
- }
+ $value = CRM_Utils_Array::value('task', $_POST);
if (!isset($value)) {
$value = $this->_controller->get('task');
}
$titles[$id] = $value['title'];
}
- // hack unset update saved search and print contacts
+ // hack unset update saved search
unset($titles[self::SAVE_SEARCH_UPDATE]);
- unset($titles[self::PRINT_CONTACTS]);
if (!CRM_Utils_Mail::validOutBoundMail()) {
unset($titles[self::EMAIL_CONTACTS]);
</tr>
<tr>
<td colspan="2">
- {* Hide export and print buttons in 'Add Members to Group' context. *}
+ {* Hide export button in 'Add Members to Group' context. *}
{if $context NEQ 'amtg'}
- {if $action eq 512}
- <ul>
- {$form._qf_Advanced_next_print.html}
- {elseif $action eq 8192}
- {$form._qf_Builder_next_print.html}
- {elseif $action eq 16384}
- {* since this does not really work for a non standard search
- {$form._qf_Custom_next_print.html}
- *}
- {else}
- {$form._qf_Basic_next_print.html}
- {/if}
{$form.task.html}
{/if}
{if $action eq 512}