You are here

protected function CourseHandler::getDatabaseFields in Course 7

Same name and namespace in other branches
  1. 6 includes/course.core.inc \CourseHandler::getDatabaseFields()
  2. 7.2 includes/CourseHandler.inc \CourseHandler::getDatabaseFields()

Return an array of database fields. This determines what fields should be serialized instead of stored.

File

includes/CourseHandler.inc, line 169

Class

CourseHandler
Master class for anything Course related.

Code

protected function getDatabaseFields() {
  $schema = drupal_get_schema($this->entityInfo['base table']);
  $fields = field_info_instances($this
    ->entityType());
  $fields = $fields[$this
    ->entityType()];
  return array_keys($fields + $schema['fields']);
}