options['alter']['make_link'] = TRUE; $this->options['alter']['path'] = "node/{$node->nid}/clone/" . clone_token_to_arg(); $method = variable_get('clone_method', 'prepopulate'); $destination = drupal_get_destination(); if ($method == 'prepopulate') { $this->options['alter']['query'] = $destination; } elseif (!empty($destination['destination'])) { $this->options['alter']['query']['node-clone-destination'] = $destination['destination']; } $text = !empty($this->options['text']) ? $this->options['text'] : t('clone'); return $text; } }