p /** * @file * oga2.ds.inc */ /** * Implements hook_ds_field_settings_info(). */ function oga2_ds_field_settings_info() { $export = array(); $ds_fieldsetting = new stdClass; $ds_fieldsetting->api_version = 1; $ds_fieldsetting->id = 'comment|comment_node_art_collection|default'; $ds_fieldsetting->entity_type = 'comment'; $ds_fieldsetting->bundle = 'comment_node_art_collection'; $ds_fieldsetting->view_mode = 'default'; $ds_fieldsetting->settings = array( 'host' => array( 'weight' => '0', 'label' => 'hidden', 'format' => 'default', ), 'art_comment_type_icon' => array( 'weight' => '0', 'label' => 'hidden', 'format' => 'default', ), 'links' => array( 'weight' => '0', 'label' => 'hidden', 'format' => 'default', ), 'post_date' => array( 'weight' => '0', 'label' => 'hidden', 'format' => 'ds_post_date_long', ), 'author' => array( 'weight' => '0', 'label' => 'hidden', 'format' => 'default', ), 'ds_user_picture' => array( 'weight' => '0', 'label' => 'hidden', 'format' => 'ds_picture_thumbnail', ), ); $export['comment|comment_node_art_collection|default'] = $ds_fieldsetting; $ds_fieldsetting = new stdClass; $ds_fieldsetting->api_version = 1; $ds_fieldsetting->id = 'comment|comment_node_art|default'; $ds_fieldsetting->entity_type = 'comment'; $ds_fieldsetting->bundle = 'comment_node_art'; $ds_fieldsetting->view_mode = 'default'; $ds_fieldsetting->settings = array( 'host' => array( 'weight' => '1', 'label' => 'hidden', 'format' => 'default', ), 'art_comment_type_icon' => array( 'weight' => '3', 'label' => 'hidden', 'format' => 'default', ), 'links' => array( 'weight' => '6', 'label' => 'hidden', 'format' => 'default', ), 'post_date' => array( 'weight' => '2', 'label' => 'hidden', 'format' => 'ds_post_date_short', ), 'author' => array( 'weight' => '0', 'label' => 'hidden', 'format' => 'default', ), 'ds_user_picture' => array( 'weight' => '4', 'label' => 'hidden', 'format' => 'ds_picture_icon_48x48', ), ); $export['comment|comment_node_art|default'] = $ds_fieldsetting; $ds_fieldsetting = new stdClass; $ds_fieldsetting->api_version = 1; $ds_fieldsetting->id = 'node|art_collection|default'; $ds_fieldsetting->entity_type = 'node'; $ds_fieldsetting->bundle = 'art_collection'; $ds_fieldsetting->view_mode = 'default'; $ds_fieldsetting->settings = array( 'flag_favorite' => array( 'weight' => '4', 'label' => 'hidden', 'format' => 'default', ), 'title' => array( 'weight' => '0', 'label' => 'hidden', 'format' => 'default', ), 'comments' => array( 'weight' => '6', 'label' => 'hidden', 'format' => 'default', ), 'author' => array( 'weight' => '1', 'label' => 'hidden', 'format' => 'author', 'ft' => array( 'func' => 'theme_ds_field_expert', ), ), 'post_date' => array( 'weight' => '2', 'label' => 'hidden', 'format' => 'ds_post_date_long', ), 'field_collected_art' => array( 'ft' => array( 'func' => 'theme_ds_field_expert', ), ), ); $export['node|art_collection|default'] = $ds_fieldsetting; $ds_fieldsetting = new stdClass; $ds_fieldsetting->api_version = 1; $ds_fieldsetting->id = 'node|art_collection|full'; $ds_fieldsetting->entity_type = 'node'; $ds_fieldsetting->bundle = 'art_collection'; $ds_fieldsetting->view_mode = 'full'; $ds_fieldsetting->settings = array( 'favorites' => array( 'weight' => '4', 'label' => 'inline', 'format' => 'default', ), 'flag_favorite' => array( 'weight' => '6', 'label' => 'hidden', 'format' => 'default', ), 'title' => array( 'weight' => '0', 'label' => 'hidden', 'format' => 'default', ), 'comments' => array( 'weight' => '8', 'label' => 'hidden', 'format' => 'default', ), 'author' => array( 'weight' => '1', 'label' => 'above', 'format' => 'author_linked', 'ft' => array( 'lb' => 'Collector', ), ), 'post_date' => array( 'weight' => '2', 'label' => 'hidden', 'format' => 'ds_post_date_long', ), ); $export['node|art_collection|full'] = $ds_fieldsetting; $ds_fieldsetting = new stdClass; $ds_fieldsetting->api_version = 1; $ds_fieldsetting->id = 'node|art|art_preview'; $ds_fieldsetting->entity_type = 'node'; $ds_fieldsetting->bundle = 'art'; $ds_fieldsetting->view_mode = 'art_preview'; $ds_fieldsetting->settings = array( 'title' => array( 'weight' => '0', 'label' => 'hidden', 'format' => 'default', 'formatter_settings' => array( 'link' => '1', 'wrapper' => 'span', 'class' => 'art-preview-title', ), ), ); $export['node|art|art_preview'] = $ds_fieldsetting; $ds_fieldsetting = new stdClass; $ds_fieldsetting->api_version = 1; $ds_fieldsetting->id = 'node|art|default'; $ds_fieldsetting->entity_type = 'node'; $ds_fieldsetting->bundle = 'art'; $ds_fieldsetting->view_mode = 'default'; $ds_fieldsetting->settings = array( 'author_submitter' => array( 'weight' => '2', 'label' => 'above', 'format' => 'default', 'ft' => array( 'lb' => 'Author', ), ), 'favorites' => array( 'weight' => '15', 'label' => 'inline', 'format' => 'default', ), 'flag_favorite' => array( 'weight' => '16', 'label' => 'hidden', 'format' => 'default', ), 'title' => array( 'weight' => '0', 'label' => 'hidden', 'format' => 'default', ), 'comments' => array( 'weight' => '18', 'label' => 'hidden', 'format' => 'default', ), 'author' => array( 'weight' => '3', 'label' => 'above', 'format' => 'author_linked', 'ft' => array( 'lb' => 'Submitter', ), ), 'post_date' => array( 'weight' => '1', 'label' => 'hidden', 'format' => 'ds_post_date_long', ), 'ds_user_picture' => array( 'weight' => '4', 'label' => 'hidden', 'format' => 'ds_picture_thumbnail', ), ); $export['node|art|default'] = $ds_fieldsetting; $ds_fieldsetting = new stdClass; $ds_fieldsetting->api_version = 1; $ds_fieldsetting->id = 'user|user|default'; $ds_fieldsetting->entity_type = 'user'; $ds_fieldsetting->bundle = 'user'; $ds_fieldsetting->view_mode = 'default'; $ds_fieldsetting->settings = array( 'art_by_this_user' => array( 'weight' => '10', 'label' => 'hidden', 'format' => 'default', ), 'project' => array( 'weight' => '2', 'label' => 'above', 'format' => 'default', ), 'flag_friends' => array( 'weight' => '8', 'label' => 'hidden', 'format' => 'default', ), 'name' => array( 'weight' => '6', 'label' => 'hidden', 'format' => 'default', ), 'ds_user_picture' => array( 'weight' => '0', 'label' => 'hidden', 'format' => 'ds_picture_thumbnail', ), 'field_user_project' => array( 'ft' => array( 'lb' => 'Project', ), ), ); $export['user|user|default'] = $ds_fieldsetting; $ds_fieldsetting = new stdClass; $ds_fieldsetting->api_version = 1; $ds_fieldsetting->id = 'user|user|full'; $ds_fieldsetting->entity_type = 'user'; $ds_fieldsetting->bundle = 'user'; $ds_fieldsetting->view_mode = 'full'; $ds_fieldsetting->settings = array( 'art_by_this_user' => array( 'weight' => '7', 'label' => 'hidden', 'format' => 'default', ), 'project' => array( 'weight' => '5', 'label' => 'above', 'format' => 'default', ), 'flag_friends' => array( 'weight' => '4', 'label' => 'hidden', 'format' => 'default', ), 'name' => array( 'weight' => '0', 'label' => 'hidden', 'format' => 'default', 'formatter_settings' => array( 'link' => '0', 'wrapper' => 'span', 'class' => 'username', ), ), 'ds_user_picture' => array( 'weight' => '2', 'label' => 'hidden', 'format' => 'ds_picture_thumbnail', ), ); $export['user|user|full'] = $ds_fieldsetting; return $export; } /** * Implements hook_ds_custom_fields_info(). */ function oga2_ds_custom_fields_info() { $export = array(); $ds_field = new stdClass; $ds_field->api_version = 1; $ds_field->field = 'art_by_user'; $ds_field->label = 'Art by User'; $ds_field->field_type = 6; $ds_field->entities = array( 'user' => 'user', ); $ds_field->properties = array( 'block' => 'views|art-block_7', 'block_render' => '1', ); $export['art_by_user'] = $ds_field; $ds_field = new stdClass; $ds_field->api_version = 1; $ds_field->field = 'art_comment_type_icon'; $ds_field->label = 'Art Comment Type Icon'; $ds_field->field_type = 5; $ds_field->entities = array( 'comment' => 'comment', ); $ds_field->properties = array( 'code' => array( 'value' => '',//', 'format' => 'ds_code', ), 'use_token' => 1, ); $export['art_comment_type_icon'] = $ds_field; $ds_field = new stdClass; $ds_field->api_version = 1; $ds_field->field = 'collect'; $ds_field->label = 'Collections'; $ds_field->field_type = 5; $ds_field->entities = array( 'node' => 'node', ); $ds_field->properties = array( 'code' => array( 'value' => ' Contributing to Site Development | Liberated Pixel Cup

Error message

  • Notice: Undefined variable: entity in require_once() (line 393 of sites/all/modules/oga2/oga2.ds.inc).
  • Notice: Trying to get property of non-object in require_once() (line 393 of sites/all/modules/oga2/oga2.ds.inc).

Contributing to Site Development

Contributing to Site Development

AntumDeluge's picture

I am curious if OpenGameArt.org's website/API is open source. If it were available on GitHib, people wanting to contribute (including myself) could create pull requests for review & possible implementation. Personally, I have a limited knowledge of web languanges. But I would like to help out where I can.

I don't want to sound impatient. The admins & developers here on OGA are doing a great job. I just feel like the site itself may benefit from community development contributions if it is not already so.