Example #1
0
 /**
  * Displays the datasets delete form
  *
  * @param mixed $handler_id The ID of the handler.
  * @param mixed &$data The local request data.
  */
 public function _show_delete($handler_id, &$data)
 {
     switch ($this->_action) {
         case 'cancel':
             $_MIDCOM->relocate('view/' . $this->_object->guid);
             break;
         case 'delete':
             $_MIDCOM->relocate('');
             break;
         default:
             $this->_request_data['type'] = 'dataset';
             $this->_request_data['dataset'] = $this->_object;
             $this->_request_data['permalink'] = $_MIDCOM->permalinks->create_permalink($this->_object->guid);
             $this->_request_data['organization'] = fi_opengov_datacatalog_info_dba::get_details($this->_object->organization, 'organization');
             $this->_request_data['license'] = fi_opengov_datacatalog_info_dba::get_details($this->_object->license, 'license');
             $this->_request_data['formats'] = fi_opengov_datacatalog_dataset_dba::get_formats($this->_object->id);
             $this->_request_data['class'] = 'odd';
             midcom_show_style('delete');
     }
 }