public function OgMigrateUser::prepareRow in Organic groups 7.2
Default implementation of prepareRow(). This method is called from the source plugin upon first pulling the raw data from the source.
Parameters
$row: Object containing raw source data.
Return value
bool TRUE to process this row, FALSE to have the source skip it.
Overrides Migration::prepareRow
File
- includes/
migrate/ 7000/ og_user.inc, line 60 - Create user relation to group.
Class
- OgMigrateUser
- @file Create user relation to group.
Code
public function prepareRow($row) {
$row->state = !empty($row->state) ? OG_STATE_ACTIVE : OG_STATE_PENDING;
parent::prepareRow($row);
}