You are here

public function FieldTestPermissionsExample::createFieldContentForUser in Examples for Developers 7

Override createFieldContentForUser().

We override so we can make sure $column is set to 'notes'.

Overrides GenericFieldTest::createFieldContentForUser

2 calls to FieldTestPermissionsExample::createFieldContentForUser()
FieldTestPermissionsExample::testFieldnoteEditPerms in field_permission_example/tests/field_permission_example.test
Test edit permissions.
FieldTestPermissionsExample::testFieldnoteViewPerms in field_permission_example/tests/field_permission_example.test
Test view permissions.

File

field_permission_example/tests/field_permission_example.test, line 419
Tests for Field Permission Example.

Class

FieldTestPermissionsExample

Code

public function createFieldContentForUser($account = NULL, $content = 'fieldnote_testable_content', $node_type = NULL, $instance_name = '', $column = 'notes') {
  return parent::createFieldContentForUser($account, $content, $node_type, $instance_name, $column);
}