You are here

function content_copy_content_fieldapi in Deploy - Content Staging 6

Implementation of hook_content_fieldapi().

When a very large content type is imported, it can (and often does) exceed PHP's timeout because every field instance being created also fires menu_rebuild(). Luckily(?) I can hook into that process and reset the timer to precent this timeout from happening.

File

services/content_copy_service/content_copy_service.module, line 29

Code

function content_copy_content_fieldapi($op, $field) {
  if ($op == 'create instance') {
    set_time_limit(60);
  }
}