function insert_bundle($bundle, $bundle_label = '') { $data = array('bundle_name' => $bundle, 'bundle_label' => $bundle_label); if ($result = $this->db->insert('stash_bundles', $data)) { return $this->db->insert_id(); } else { return FALSE; } }