function ctools_export_crud_load

×

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 export.inc ctools_export_crud_load($table, $name)
cle7 export.inc ctools_export_crud_load($table, $name)
elmsmedia7 export.inc ctools_export_crud_load($table, $name)
icor7 export.inc ctools_export_crud_load($table, $name)
meedjum_blog7 export.inc ctools_export_crud_load($table, $name)
mooc7 export.inc ctools_export_crud_load($table, $name)

Load a single exportable object.

Parameters

$table: The name of the table to use to retrieve $schema values. This table must have an 'export' section containing data or this function will fail.

$name: The unique ID to load. The field for this ID will be specified by the export key, which normally defaults to 'name'.

Return value

The loaded object.

Related topics

20 calls to ctools_export_crud_load()
context_ui_edit_name_validate in sites/all/modules/ulmus/context/context_ui/export_ui/context_export_ui.class.php
Replacement for ctools_export_ui_edit_name_validate(). Allow dashes.
ctools_cache_export_ui_cache_get in sites/all/modules/ulmus/ctools/plugins/cache/export_ui.inc
ctools_component_features_revert in sites/all/modules/ulmus/features/includes/features.ctools.inc
Master implementation of hook_features_revert() for all ctools components.
ctools_custom_content_type_content_type in sites/all/modules/ulmus/ctools/plugins/content_types/custom/custom.inc
Return the custom content types with the specified $subtype_id.
ctools_custom_content_type_edit_form_validate in sites/all/modules/ulmus/ctools/plugins/content_types/custom/custom.inc
The validate form to ensure the custom content data is okay.

... See full list

File

sites/all/modules/ulmus/ctools/includes/export.inc, line 73
Contains code to make it easier to have exportable objects.

Code

function ctools_export_crud_load($table, $name) {
  $schema = ctools_export_get_schema($table);
  $export = $schema['export'];

  if (!empty($export['load callback']) && function_exists($export['load callback'])) {
    return $export['load callback']($name);
  }
  else {
    $result = ctools_export_load_object($table, 'names', array($name));
    if (isset($result[$name])) {
      return $result[$name];
    }
  }
}
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.