array( 'title' => ts('Print Mailing Recipients'), 'class' => 'CRM_Mailing_Form_Task_Print', 'result' => FALSE, ), ); CRM_Utils_Hook::searchTasks('mailing', self::$_tasks); asort(self::$_tasks); } return self::$_tasks; } /** * These tasks are the core set of task titles * on mailing recipients * * @return array * the set of task titles */ public static function &taskTitles() { return array(); } /** * Show tasks selectively based on the permission level * of the user * * @param int $permission * * @return array * set of tasks that are valid for the user */ public static function &permissionedTaskTitles($permission) { $task = array(); return $task; } /** * These tasks are the core set of tasks that the user can perform. * on mailing recipients * * @param int $value * * @return array * the set of tasks for a group of mailing recipients */ public static function getTask($value) { self::tasks(); if (!$value || !CRM_Utils_Array::value($value, self::$_tasks)) { // make the print task by default $value = 1; } return array( self::$_tasks[$value]['class'], self::$_tasks[$value]['result'], ); } }