Module: Drupal::CCK::Builder::InstanceMethods

Defined in:
lib/drupal/cck/builder.rb

Instance Method Summary collapse

Instance Method Details

#generate_nodeObject



20
21
22
23
24
25
26
27
# File 'lib/drupal/cck/builder.rb', line 20

def generate_node
  return node if node
  self.node = Node.create! :type => content_type
  self.vid = node.vid
  save!
  self.vid = node.vid
  save!
end