Skip to content

Instantly share code, notes, and snippets.

@volkanunsal
Created March 31, 2010 11:52
Show Gist options
  • Save volkanunsal/350223 to your computer and use it in GitHub Desktop.
Save volkanunsal/350223 to your computer and use it in GitHub Desktop.
$content['type'] = array (
'name' => 'Portfolio Item',
'type' => 'portfolio_item',
'description' => 'Stuff that make up the portfolio. This content may include pictures, flash, video, links, and other types of media.',
'title_label' => 'Title',
'body_label' => '',
'min_word_count' => '0',
'help' => '<br />
',
'node_options' =>
array (
'status' => true,
'revision' => true,
'promote' => false,
'sticky' => false,
),
'upload' => 1,
'ffp_upload' =>
array (
'file_path' => '',
'file_path_cleanup' =>
array (
'file_path_pathauto' => 0,
'file_path_tolower' => 0,
'file_path_transliterate' => 0,
),
'file_name' => '[filefield-onlyname-original].[filefield-extension-original]',
'file_name_cleanup' =>
array (
'file_name_pathauto' => 0,
'file_name_tolower' => 0,
'file_name_transliterate' => 0,
),
'file_alias' => 'sites/default/files/[filefield-onlyname-original].[filefield-extension-original]',
'file_alias_display' => 0,
'file_alias_cleanup' =>
array (
'file_alias_pathauto' => 0,
'file_alias_tolower' => 0,
'file_alias_transliterate' => 0,
),
'retroactive_update' => '',
'active_updating' => 0,
),
'old_type' => 'portfolio_item',
'orig_type' => '',
'module' => 'node',
'custom' => '1',
'modified' => '1',
'locked' => '0',
'page_title' =>
array (
'show_field' =>
array (
'show_field' => false,
),
'pattern' => '',
),
);
$content['groups'] = array (
0 =>
array (
'label' => 'Teaser',
'group_type' => 'standard',
'settings' =>
array (
'form' =>
array (
'style' => 'fieldset',
'description' => '',
),
'display' =>
array (
'description' => '',
5 =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
'teaser' =>
array (
'format' => 'simple',
'exclude' => 0,
),
'full' =>
array (
'format' => 'hidden',
'exclude' => 1,
),
4 =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
2 =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
3 =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
'sticky' =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
'token' =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
'label' => 'hidden',
),
),
'weight' => '-10',
'group_name' => 'group_teaser',
),
1 =>
array (
'label' => 'Top',
'group_type' => 'standard',
'settings' =>
array (
'form' =>
array (
'style' => 'fieldset_collapsed',
'description' => '',
),
'display' =>
array (
'description' => '',
5 =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
'teaser' =>
array (
'format' => 'hidden',
'exclude' => 0,
),
'full' =>
array (
'format' => 'simple',
'exclude' => 0,
),
4 =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
2 =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
3 =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
'sticky' =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
'token' =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
'label' => 'hidden',
),
),
'weight' => '-9',
'group_name' => 'group_pictures',
),
2 =>
array (
'label' => 'Bottom',
'group_type' => 'standard',
'settings' =>
array (
'form' =>
array (
'style' => 'fieldset_collapsed',
'description' => '',
),
'display' =>
array (
'description' => '',
5 =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
'teaser' =>
array (
'format' => 'hidden',
'exclude' => 0,
),
'full' =>
array (
'format' => 'simple',
'exclude' => 0,
),
4 =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
2 =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
3 =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
'sticky' =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
'token' =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
'label' => 'hidden',
),
),
'weight' => '-1',
'group_name' => 'group_text_tields',
),
3 =>
array (
'label' => 'Links',
'group_type' => 'standard',
'settings' =>
array (
'form' =>
array (
'style' => 'fieldset',
'description' => '',
),
'display' =>
array (
'description' => '',
5 =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
'teaser' =>
array (
'format' => 'hidden',
'exclude' => 0,
),
'full' =>
array (
'format' => 'simple',
'exclude' => 0,
),
4 =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
2 =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
3 =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
'sticky' =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
'token' =>
array (
'format' => 'fieldset',
'exclude' => 0,
),
'label' => 'hidden',
),
),
'weight' => '2',
'group_name' => 'group_links',
),
);
$content['fields'] = array (
0 =>
array (
'label' => 'Teaser',
'field_name' => 'field_teaser',
'type' => 'text',
'widget_type' => 'text_textarea',
'change' => 'Change basic information',
'weight' => '35',
'rows' => '5',
'size' => 60,
'description' => '',
'default_value' =>
array (
0 =>
array (
'value' => '',
'_error_element' => 'default_value_widget][field_teaser][0][value',
),
),
'default_value_php' => '',
'default_value_widget' => NULL,
'group' => 'group_teaser',
'required' => 1,
'multiple' => '0',
'text_processing' => '1',
'max_length' => '',
'allowed_values' => '',
'allowed_values_php' => '',
'op' => 'Save field settings',
'module' => 'text',
'widget_module' => 'text',
'columns' =>
array (
'value' =>
array (
'type' => 'text',
'size' => 'big',
'not null' => false,
'sortable' => true,
'views' => true,
),
'format' =>
array (
'type' => 'int',
'unsigned' => true,
'not null' => false,
'views' => false,
),
),
'display_settings' =>
array (
'label' =>
array (
'format' => 'hidden',
),
'format' => 'default',
'region' => 'disabled',
'ds_weight' => '-18',
'full' =>
array (
'label' =>
array (
'format' => 'hidden',
),
'format' => 'default',
'region' => 'disabled',
'label_value' => '',
'exclude' => 1,
'weight' => '-18',
),
'weight' => '35',
'parent' => 'group_teaser',
'teaser' =>
array (
'format' => 'trimmed',
'exclude' => 0,
),
5 =>
array (
'format' => 'default',
'exclude' => 0,
),
4 =>
array (
'format' => 'default',
'exclude' => 0,
),
2 =>
array (
'format' => 'default',
'exclude' => 0,
),
3 =>
array (
'format' => 'default',
'exclude' => 0,
),
'token' =>
array (
'format' => 'default',
'exclude' => 0,
),
),
),
1 =>
array (
'label' => 'Logo',
'field_name' => 'field_logo',
'type' => 'filefield',
'widget_type' => 'imagefield_widget',
'change' => 'Change basic information',
'weight' => '36',
'file_extensions' => 'png gif jpg jpeg',
'progress_indicator' => 'bar',
'file_path' => '[site-name]/portfolio/logos',
'max_filesize_per_file' => '',
'max_filesize_per_node' => '',
'max_resolution' => 0,
'min_resolution' => 0,
'custom_alt' => 0,
'alt' => '',
'custom_title' => 0,
'title_type' => 'textfield',
'title' => '',
'use_default_image' => 1,
'default_image_upload' => '',
'default_image' =>
array (
'filename' => 'block.png',
'filepath' => 'sites/default/files/imagefield_default_images/block.png',
'filemime' => 'image/png',
'source' => 'default_image_upload',
'destination' => 'sites/default/files/imagefield_default_images/block.png',
'filesize' => 6923,
'uid' => '1',
'status' => 1,
'timestamp' => 1269850483,
'fid' => '47',
),
'description' => '',
'ffp_field_logo' =>
array (
'file_path' => '[site-name]/portfolio/logos',
'file_path_cleanup' =>
array (
'file_path_pathauto' => 0,
'file_path_tolower' => 0,
'file_path_transliterate' => 0,
),
'file_name' => '[filefield-onlyname-original].[filefield-extension-original]',
'file_name_cleanup' =>
array (
'file_name_pathauto' => 0,
'file_name_tolower' => 0,
'file_name_transliterate' => 0,
),
'file_alias' => 'sites/default/files/[filefield-onlyname-original].[filefield-extension-original]',
'file_alias_display' => 0,
'file_alias_cleanup' =>
array (
'file_alias_pathauto' => 0,
'file_alias_tolower' => 0,
'file_alias_transliterate' => 0,
),
'retroactive_update' => '',
'active_updating' => 0,
),
'group' => 'group_teaser',
'required' => 0,
'multiple' => '0',
'list_field' => '0',
'list_default' => 1,
'description_field' => '0',
'op' => 'Save field settings',
'module' => 'filefield',
'widget_module' => 'imagefield',
'columns' =>
array (
'fid' =>
array (
'type' => 'int',
'not null' => false,
'views' => true,
),
'list' =>
array (
'type' => 'int',
'size' => 'tiny',
'not null' => false,
'views' => true,
),
'data' =>
array (
'type' => 'text',
'serialize' => true,
'views' => true,
),
),
'display_settings' =>
array (
'label' =>
array (
'format' => 'hidden',
),
'format' => 'default',
'region' => 'disabled',
'ds_weight' => '-22',
'full' =>
array (
'label' =>
array (
'format' => 'hidden',
),
'format' => 'default',
'region' => 'disabled',
'label_value' => '',
'exclude' => 1,
'weight' => '-22',
),
'weight' => '36',
'parent' => 'group_teaser',
'teaser' =>
array (
'format' => 'teaser_thumbnail_default',
'exclude' => 0,
),
5 =>
array (
'format' => 'image_plain',
'exclude' => 0,
),
4 =>
array (
'format' => 'image_plain',
'exclude' => 0,
),
2 =>
array (
'format' => 'image_plain',
'exclude' => 0,
),
3 =>
array (
'format' => 'image_plain',
'exclude' => 0,
),
'token' =>
array (
'format' => 'image_plain',
'exclude' => 0,
),
),
),
2 =>
array (
'label' => 'Big Picture',
'field_name' => 'field_big_picture',
'type' => 'filefield',
'widget_type' => 'imagefield_widget',
'change' => 'Change basic information',
'weight' => '-1',
'file_extensions' => 'png gif jpg jpeg',
'progress_indicator' => 'bar',
'file_path' => '[site-name]/portfolio/big_picture',
'max_filesize_per_file' => '',
'max_filesize_per_node' => '',
'max_resolution' => 0,
'min_resolution' => 0,
'custom_alt' => 1,
'alt' => '',
'custom_title' => 1,
'title_type' => 'textfield',
'title' => '',
'use_default_image' => 0,
'default_image_upload' => '',
'default_image' => NULL,
'description' => 'This image is presented in large format taking up nearly half a page.',
'ffp_field_big_picture' =>
array (
'file_path' => '[site-name]/portfolio/big_picture',
'file_path_cleanup' =>
array (
'file_path_pathauto' => 0,
'file_path_tolower' => 0,
'file_path_transliterate' => 0,
),
'file_name' => '[filefield-onlyname-original].[filefield-extension-original]',
'file_name_cleanup' =>
array (
'file_name_pathauto' => 0,
'file_name_tolower' => 0,
'file_name_transliterate' => 0,
),
'file_alias' => 'sites/default/files/[filefield-onlyname-original].[filefield-extension-original]',
'file_alias_display' => 0,
'file_alias_cleanup' =>
array (
'file_alias_pathauto' => 0,
'file_alias_tolower' => 0,
'file_alias_transliterate' => 0,
),
'retroactive_update' => '',
'active_updating' => 0,
),
'group' => 'group_pictures',
'required' => 0,
'multiple' => '0',
'list_field' => '0',
'list_default' => 1,
'description_field' => '1',
'op' => 'Save field settings',
'module' => 'filefield',
'widget_module' => 'imagefield',
'columns' =>
array (
'fid' =>
array (
'type' => 'int',
'not null' => false,
'views' => true,
),
'list' =>
array (
'type' => 'int',
'size' => 'tiny',
'not null' => false,
'views' => true,
),
'data' =>
array (
'type' => 'text',
'serialize' => true,
'views' => true,
),
),
'display_settings' =>
array (
'label' =>
array (
'format' => 'hidden',
),
'format' => 'default',
'region' => 'disabled',
'ds_weight' => '-17',
'full' =>
array (
'label' =>
array (
'format' => 'above',
),
'format' => 'big_picture_default',
'region' => 'disabled',
'label_value' => '',
'exclude' => 1,
'weight' => '-17',
),
'weight' => '-1',
'parent' => 'group_pictures',
'teaser' =>
array (
'format' => 'hidden',
'exclude' => 0,
),
4 =>
array (
'format' => 'image_plain',
'exclude' => 0,
),
2 =>
array (
'format' => 'image_plain',
'exclude' => 0,
),
3 =>
array (
'format' => 'image_plain',
'exclude' => 0,
),
'token' =>
array (
'format' => 'image_plain',
'exclude' => 0,
),
),
),
3 =>
array (
'label' => 'Meta',
'field_name' => 'field_meta',
'type' => 'text',
'widget_type' => 'text_textarea',
'change' => 'Change basic information',
'weight' => 0,
'rows' => '10',
'size' => 60,
'description' => 'Meta information about the portfolio item. This may include name, description, client name, date, etc.',
'default_value' =>
array (
0 =>
array (
'value' => '',
'_error_element' => 'default_value_widget][field_meta][0][value',
),
),
'default_value_php' => '',
'default_value_widget' =>
array (
'field_meta' =>
array (
0 =>
array (
'value' => '',
'_error_element' => 'default_value_widget][field_meta][0][value',
'format' => '2',
),
),
),
'group' => 'group_text_tields',
'required' => 1,
'multiple' => '0',
'text_processing' => '1',
'max_length' => '',
'allowed_values' => '',
'allowed_values_php' => '',
'op' => 'Save field settings',
'module' => 'text',
'widget_module' => 'text',
'columns' =>
array (
'value' =>
array (
'type' => 'text',
'size' => 'big',
'not null' => false,
'sortable' => true,
'views' => true,
),
'format' =>
array (
'type' => 'int',
'unsigned' => true,
'not null' => false,
'views' => false,
),
),
'display_settings' =>
array (
'label' =>
array (
'format' => 'hidden',
),
'format' => 'default',
'region' => 'disabled',
'ds_weight' => '-20',
'full' =>
array (
'label' =>
array (
'format' => 'hidden',
),
'format' => 'plain',
'region' => 'disabled',
'label_value' => '',
'exclude' => 1,
'weight' => '-20',
),
'weight' => 0,
'parent' => 'group_text_tields',
'teaser' =>
array (
'format' => 'hidden',
'exclude' => 0,
),
4 =>
array (
'format' => 'default',
'exclude' => 0,
),
2 =>
array (
'format' => 'default',
'exclude' => 0,
),
3 =>
array (
'format' => 'default',
'exclude' => 0,
),
'token' =>
array (
'format' => 'default',
'exclude' => 0,
),
),
),
4 =>
array (
'label' => 'Small Pics',
'field_name' => 'field_small_pics',
'type' => 'filefield',
'widget_type' => 'imagefield_widget',
'change' => 'Change basic information',
'weight' => '1',
'file_extensions' => 'png gif jpg jpeg',
'progress_indicator' => 'bar',
'file_path' => '[site-name]/portfolio/small_pics',
'max_filesize_per_file' => '',
'max_filesize_per_node' => '',
'max_resolution' => 0,
'min_resolution' => 0,
'custom_alt' => 0,
'alt' => '',
'custom_title' => 0,
'title_type' => 'textfield',
'title' => '',
'use_default_image' => 0,
'default_image_upload' => '',
'default_image' => NULL,
'description' => 'These are small pictures showcasing other sides of the portfolio item.',
'ffp_field_small_pics' =>
array (
'file_path' => '[site-name]/portfolio/small_pics',
'file_path_cleanup' =>
array (
'file_path_pathauto' => 0,
'file_path_tolower' => 0,
'file_path_transliterate' => 0,
),
'file_name' => '[filefield-onlyname-original].[filefield-extension-original]',
'file_name_cleanup' =>
array (
'file_name_pathauto' => 0,
'file_name_tolower' => 0,
'file_name_transliterate' => 0,
),
'file_alias' => 'sites/default/files/[filefield-onlyname-original].[filefield-extension-original]',
'file_alias_display' => 0,
'file_alias_cleanup' =>
array (
'file_alias_pathauto' => 0,
'file_alias_tolower' => 0,
'file_alias_transliterate' => 0,
),
'retroactive_update' => '',
'active_updating' => 0,
),
'group' => 'group_text_tields',
'required' => 1,
'multiple' => '1',
'list_field' => '0',
'list_default' => 1,
'description_field' => '0',
'op' => 'Save field settings',
'module' => 'filefield',
'widget_module' => 'imagefield',
'columns' =>
array (
'fid' =>
array (
'type' => 'int',
'not null' => false,
'views' => true,
),
'list' =>
array (
'type' => 'int',
'size' => 'tiny',
'not null' => false,
'views' => true,
),
'data' =>
array (
'type' => 'text',
'serialize' => true,
'views' => true,
),
),
'display_settings' =>
array (
'label' =>
array (
'format' => 'hidden',
),
'format' => 'default',
'region' => 'disabled',
'ds_weight' => '-19',
'full' =>
array (
'label' =>
array (
'format' => 'hidden',
),
'format' => 'small_pics_default',
'region' => 'disabled',
'label_value' => '',
'exclude' => 1,
'weight' => '-19',
),
'weight' => '1',
'parent' => 'group_text_tields',
'teaser' =>
array (
'format' => 'hidden',
'exclude' => 0,
),
4 =>
array (
'format' => 'image_plain',
'exclude' => 0,
),
2 =>
array (
'format' => 'image_plain',
'exclude' => 0,
),
3 =>
array (
'format' => 'image_plain',
'exclude' => 0,
),
'token' =>
array (
'format' => 'image_plain',
'exclude' => 0,
),
),
),
5 =>
array (
'label' => 'Live',
'field_name' => 'field_live_site',
'type' => 'link',
'widget_type' => 'link',
'change' => 'Change basic information',
'weight' => '31',
'description' => 'Enter the live site for the project. (optional)',
'default_value' =>
array (
0 =>
array (
'url' => '',
),
),
'default_value_php' => '',
'default_value_widget' =>
array (
'field_live_site' =>
array (
0 =>
array (
'url' => '',
),
),
),
'group' => false,
'required' => 0,
'multiple' => '0',
'url' => 0,
'title' => 'value',
'title_value' => 'Live',
'enable_tokens' => 0,
'display' =>
array (
'url_cutoff' => '80',
),
'attributes' =>
array (
'target' => '_blank',
'rel' => '',
'class' => 'live awesome',
'title' => 'Click to go to the live site.',
),
'op' => 'Save field settings',
'module' => 'link',
'widget_module' => 'link',
'columns' =>
array (
'url' =>
array (
'type' => 'varchar',
'length' => 2048,
'not null' => false,
'sortable' => true,
),
'title' =>
array (
'type' => 'varchar',
'length' => 255,
'not null' => false,
'sortable' => true,
),
'attributes' =>
array (
'type' => 'text',
'size' => 'medium',
'not null' => false,
),
),
'display_settings' =>
array (
'label' =>
array (
'format' => 'hidden',
),
'format' => 'default',
'region' => 'disabled',
'ds_weight' => '-29',
'full' =>
array (
'label' =>
array (
'format' => 'hidden',
),
'format' => 'default',
'region' => 'footer',
'label_value' => '',
'exclude' => 0,
'weight' => '-29',
),
'weight' => '31',
'parent' => 'group_links',
'teaser' =>
array (
'format' => 'label',
'exclude' => 0,
),
5 =>
array (
'format' => 'default',
'exclude' => 0,
),
4 =>
array (
'format' => 'default',
'exclude' => 0,
),
2 =>
array (
'format' => 'default',
'exclude' => 0,
),
3 =>
array (
'format' => 'default',
'exclude' => 0,
),
'token' =>
array (
'format' => 'default',
'exclude' => 0,
),
),
),
6 =>
array (
'label' => 'Demo',
'field_name' => 'field_demo',
'type' => 'link',
'widget_type' => 'link',
'change' => 'Change basic information',
'weight' => '34',
'description' => 'Enter the demo for the project.',
'default_value' =>
array (
0 =>
array (
'url' => '',
),
),
'default_value_php' => '',
'default_value_widget' =>
array (
'field_demo' =>
array (
0 =>
array (
'url' => '',
),
),
),
'group' => false,
'required' => 0,
'multiple' => '0',
'url' => 0,
'title' => 'value',
'title_value' => 'Demo',
'enable_tokens' => 0,
'display' =>
array (
'url_cutoff' => '80',
),
'attributes' =>
array (
'target' => 'default',
'rel' => '',
'class' => 'demo awesome',
'title' => '',
),
'op' => 'Save field settings',
'module' => 'link',
'widget_module' => 'link',
'columns' =>
array (
'url' =>
array (
'type' => 'varchar',
'length' => 2048,
'not null' => false,
'sortable' => true,
),
'title' =>
array (
'type' => 'varchar',
'length' => 255,
'not null' => false,
'sortable' => true,
),
'attributes' =>
array (
'type' => 'text',
'size' => 'medium',
'not null' => false,
),
),
'display_settings' =>
array (
'label' =>
array (
'format' => 'hidden',
),
'format' => 'default',
'region' => 'disabled',
'ds_weight' => '-30',
'full' =>
array (
'label' =>
array (
'format' => 'hidden',
),
'format' => 'default',
'region' => 'footer',
'label_value' => '',
'exclude' => 0,
'weight' => '-30',
),
'weight' => '34',
'parent' => 'group_links',
'teaser' =>
array (
'format' => 'label',
'exclude' => 0,
),
5 =>
array (
'format' => 'default',
'exclude' => 0,
),
4 =>
array (
'format' => 'default',
'exclude' => 0,
),
2 =>
array (
'format' => 'default',
'exclude' => 0,
),
3 =>
array (
'format' => 'default',
'exclude' => 0,
),
'token' =>
array (
'format' => 'default',
'exclude' => 0,
),
),
),
);
$content['extra'] = array (
'title' => '-100',
'revision_information' => '2',
'menu' => '-97',
'taxonomy' => '-98',
'book' => '10',
'path' => '3',
'attachments' => '30',
'subtitle' => '-99',
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment