You are here

function _content_slider_installed_fields in Featured Content Slider 7

Same name and namespace in other branches
  1. 7.3 content_slider.module \_content_slider_installed_fields()
  2. 7.2 content_slider.module \_content_slider_installed_fields()

Define the fields for our content type.

This big array is factored into this function for readability.

Return value

An associative array specifying the fields we wish to add to our new node type.

1 call to _content_slider_installed_fields()
content_slider_node_type_insert in ./content_slider.module
Implements hook_node_type_insert().

File

./content_slider.module, line 229
Module file for content slider module.

Code

function _content_slider_installed_fields() {
  return array(
    'field_slider_image' => array(
      'field_name' => 'field_slider_image',
      'type' => 'image',
      'cardinality' => 1,
    ),
  );
}