$this->language->load('catalog/profile');
$this->document->setTitle($this->language->get('heading_title'));
$this->load->model('catalog/profile');
if (isset($this->request->post['profile_ids']) && $this->validateDelete()) {
foreach ($this->request->post['profile_ids'] as $profile_id) {
$this->model_catalog_profile->deleteProfile($profile_id);
}
$this->session->data['success'] = $this->language->get('text_success');
$this->redirect($this->url->link('catalog/profile', 'token=' . $this->session->data['token'], 'SSL'));
}
$this->getList();