Skip to:
Content

bbPress.org

Changeset 5418


Ignore:
Timestamp:
06/27/2014 03:02:00 AM (11 years ago)
Author:
netweb
Message:

Include 'Forum Type' - _bbp_forum_type and 'Forum Status' _bbp_forum_status in Example.php importer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/converters/Example.php

    r5349 r5418  
    110110        );
    111111
     112        // Forum type (Category = 0 or Forum = 1, Stored in postmeta)
     113        $this->field_map[] = array(
     114            'from_tablename'  => 'forums_table',
     115            'from_fieldname'  => 'the_forum_type',
     116            'to_type'         => 'forum',
     117            'to_fieldname'    => '_bbp_forum_type',
     118            'callback_method' => 'callback_forum_type'
     119        );
     120
     121        // Forum status (Unlocked = 0 or Locked = 1, Stored in postmeta)
     122        $this->field_map[] = array(
     123            'from_tablename'  => 'forums_table',
     124            'from_fieldname'  => 'the_forum_status',
     125            'to_type'         => 'forum',
     126            'to_fieldname'    => '_bbp_status',
     127            'callback_method' => 'callback_forum_status'
     128        );
     129
    112130        // Forum dates.
    113131        $this->field_map[] = array(
Note: See TracChangeset for help on using the changeset viewer.