You are here

function gathercontent_get_obj in GatherContent 7.2

Used to get GatherContentCurl object.

8 calls to gathercontent_get_obj()
gathercontent_ajax_media_download in includes/media.inc
AJAX function to process individual media item.
gathercontent_import_page in includes/pages_import.inc
AJAX function to process individual pages.
gathercontent_login_form_submit in includes/login.inc
Form submission handler for gathercontent_login_form().
gathercontent_media_form in includes/media.inc
Form constructor for displaying media import dialog.
gathercontent_pages_form in includes/pages.inc
Form constructor for selecting pages.

... See full list

File

./gathercontent.module, line 112
Imports pages from GatherContent (http://gathercontent.com/) into Drupal as nodes.

Code

function gathercontent_get_obj() {
  static $obj;
  if (!isset($obj)) {
    module_load_include('inc', 'gathercontent', 'includes/functions');
    module_load_include('inc', 'gathercontent', 'includes/curl');
    $obj = new GatherContentCurl();
  }
  return $obj;
}