function _field_permission_example_page

A simple page to explain to the developer what to do.

See also

field_permission_example.module

Related topics

1 string reference to '_field_permission_example_page'
field_permission_example_menu in field_permission_example/field_permission_example.module
Implements hook_menu().

File

field_permission_example/field_permission_example.module, line 321

Code

function _field_permission_example_page() {
    $page = t("<p>The Field Permission Example module shows how you can restrict view and edit permissions within your field implementation. It adds a new field type called Fieldnote. Fieldnotes appear as simple text boxes on the create/edit form, and as sticky notes when viewed. By 'sticky note' we mean 'Post-It Note' but that's a trademarked term.</p><p>To see this field in action, add it to a content type or user profile. Go to the permissions page (");
    $page .= l(t('admin/people/permissions'), 'admin/people/permissions');
    $page .= t(") and look at the 'Field Permission Example' section. This allows you to change which roles can see and edit Fieldnote fields.</p><p>Creating different users with different capabilities will let you see these behaviors in action. Fieldnote helpfully displays a message telling you which permissions it is trying to resolve for the current field/user combination.</p><p>Definitely look through the code to see various implementation details.</p>");
    return $page;
}