Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p2p_register_connection_type ( array(
- 'name' => 'fish_to_catch',
- 'from' => 'fish-species',
- 'to' => 'catches',
- 'cardinality' => 'one-to-many',
- 'title' => array('to' => 'Fish Species','from' => 'Catch' ),
- 'admin_column' => 'to'
- ) );
- # Connect Catches and Users
- p2p_register_connection_type ( array (
- 'name' => 'catch_to_user',
- 'from' => 'catches',
- 'to' => 'user',
- 'duplicate_connections' => true,
- 'title' => array('to' => 'Catch','from' => 'Users' ),
- 'admin_column' => 'from'
- 'fields' => array (
- 'member_role' => array (
- 'title' => "Role",
- 'type' => 'checkbox',
- 'values' => array (
- 'angler' => 'Angler',
- 'boat_captain' => 'Captain'
- )
- )
- )
- ) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement