You are here

function autoassignrole_page_create in Auto Assign Role 7.2

Creates an empty Auto assign role page object.

Parameters

array $values: (optional) Associative array with initial values.

Return value

stdClass An Auto assign role page object.

1 call to autoassignrole_page_create()
autoassignrole_page_form in ./autoassignrole.admin.inc
Provides a FAPI form for adding and editing pages.

File

./autoassignrole.module, line 201
The main autoassignrole.module file

Code

function autoassignrole_page_create(array $values = array()) {
  ctools_include('export');
  $page = ctools_export_new_object('autoassignrole_page');
  foreach ($values as $key => $value) {
    if (property_exists($page, $key)) {
      $page->{$key} = $value;
    }
  }
  return $page;
}