Skip to content

Instantly share code, notes, and snippets.

@vincenzo
Created March 15, 2012 09:42
Show Gist options
  • Save vincenzo/2043295 to your computer and use it in GitHub Desktop.
Save vincenzo/2043295 to your computer and use it in GitHub Desktop.
Programmatic CCK Content Type Updated - Step 2
<?php
$content['type'] = array(
'name' => 'Example CCK Content',
'type' => 'example_cck_content',
// ... cut code ...
$content['fields'] = array(
0 =>
array(
'label' => 'Box Image',
'field_name' => 'field_boximage',
// ... cut code ...
$content['extra'] = array(
'title' => '-5',
'revision_information' => '20',
'comment_settings' => '30',
'menu' => '-2',
),
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment