function feeds_library_exists

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 feeds.module feeds_library_exists($file, $library)
cle7 feeds.module feeds_library_exists($file, $library)
elmsmedia7 feeds.module feeds_library_exists($file, $library)
icor7 feeds.module feeds_library_exists($file, $library)
meedjum_blog7 feeds.module feeds_library_exists($file, $library)
mooc7 feeds.module feeds_library_exists($file, $library)

Checks whether a library is present.

Parameters

$file: The filename to load from.

$library: The name of the library. If libraries module is installed, feeds_library_exists() will look for libraries with this name managed by libraries module.

Related topics

1 call to feeds_library_exists()
feeds_simplepie_exists in sites/all/modules/ulmus/feeds/feeds.module
Checks whether simplepie exists.

File

sites/all/modules/ulmus/feeds/feeds.module, line 1004
Feeds - basic API functions and hook implementations.

Code

function feeds_library_exists($file, $library) {

  if (module_exists('libraries') && file_exists(libraries_get_path($library) . "/$file")) {
    return TRUE;
  }

  elseif (file_exists(DRUPAL_ROOT . '/' . drupal_get_path('module', 'feeds') . "/libraries/$file")) {
    return TRUE;
  }

  elseif ($library_dir = variable_get('feeds_library_dir', FALSE)) {
    if (file_exists("$library_dir/$library/$file")) {
      return TRUE;
    }
  }

  return FALSE;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.