You are here

function workbench_email_get_author_role in Workbench Email 7.3

Returns an author role object.

Return value

object The role object.

5 calls to workbench_email_get_author_role()
workbench_email_create_form_element in ./workbench_email.form.inc
Create the email selection form element.
workbench_email_features_export_options in ./workbench_email.features.inc
Implements COMPONENT_features_export_options().
workbench_email_form in ./workbench_email.admin.inc
Administration form to create and delete email transitions.
workbench_email_get_role_by_name in ./workbench_email.module
Returns role object by name.
workbench_email_get_role_by_rid in ./workbench_email.module
Returns role object.

File

./workbench_email.module, line 631
Code for the Workbench Email Module.

Code

function workbench_email_get_author_role() {
  $role = new stdClass();
  $role->rid = WORKBENCH_EMAIL_AUTHOR;
  $role->name = 'original author';
  return $role;
}