Full ELMS Learning Network documentation
function ctools_export_crud_load_all
×
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_all($table, $reset = FALSE) |
cle7 export.inc | ctools_export_crud_load_all($table, $reset = FALSE) |
elmsmedia7 export.inc | ctools_export_crud_load_all($table, $reset = FALSE) |
icor7 export.inc | ctools_export_crud_load_all($table, $reset = FALSE) |
meedjum_blog7 export.inc | ctools_export_crud_load_all($table, $reset = FALSE) |
mooc7 export.inc | ctools_export_crud_load_all($table, $reset = FALSE) |
Load all exportable objects of a given type.
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.
$reset: If TRUE, the static cache of all objects will be flushed prior to loading all. This can be important on listing pages where items might have changed on the page load.
Return value
An array of all loaded objects, keyed by the unique IDs of the export key.
Related topics
34 calls to ctools_export_crud_load_all()
- ctools_access_ruleset_panels_dashboard_blocks in sites/
all/ modules/ ulmus/ ctools/ ctools_access_ruleset/ ctools_access_ruleset.module - Implementation of hook_panels_dashboard_blocks().
- ctools_custom_content_panels_dashboard_blocks in sites/
all/ modules/ ulmus/ ctools/ ctools_custom_content/ ctools_custom_content.module - Implementation of hook_panels_dashboard_blocks().
- ctools_custom_content_type_content_types in sites/
all/ modules/ ulmus/ ctools/ plugins/ content_types/ custom/ custom.inc - Return all custom content types available.
- ctools_export_default_list in sites/
all/ modules/ ulmus/ ctools/ includes/ export.inc - Default function for listing bulk exportable objects.
- ctools_export_ui::list_page in sites/
all/ modules/ ulmus/ ctools/ plugins/ export_ui/ ctools_export_ui.class.php - Master entry point for handling a list.
File
- sites/
all/ modules/ ulmus/ ctools/ includes/ export.inc, line 132 - Contains code to make it easier to have exportable objects.
Code
function ctools_export_crud_load_all($table, $reset = FALSE) {
$schema = ctools_export_get_schema($table);
if (empty($schema['export'])) {
return array();
}
$export = $schema['export'];
if ($reset) {
ctools_export_load_object_reset($table);
}
if (!empty($export['load all callback']) && function_exists($export['load all callback'])) {
return $export['load all callback']($reset);
}
else {
return ctools_export_load_object($table, 'all');
}
}