function ctools_export_crud_new

×

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_new($table, $set_defaults = TRUE)
cle7 export.inc ctools_export_crud_new($table, $set_defaults = TRUE)
elmsmedia7 export.inc ctools_export_crud_new($table, $set_defaults = TRUE)
icor7 export.inc ctools_export_crud_new($table, $set_defaults = TRUE)
meedjum_blog7 export.inc ctools_export_crud_new($table, $set_defaults = TRUE)
mooc7 export.inc ctools_export_crud_new($table, $set_defaults = TRUE)

Create a new object for the given $table.

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.

$set_defaults: If TRUE, which is the default, then default values will be retrieved from schema fields and set on the object.

Return value

The loaded object.

Related topics

6 calls to ctools_export_crud_new()
ctools_custom_content_type_edit_form_submit in sites/all/modules/ulmus/ctools/plugins/content_types/custom/custom.inc
The submit form stores the data in $conf.
ctools_custom_content_type_get_conf in sites/all/modules/ulmus/ctools/plugins/content_types/custom/custom.inc
Given a subtype and a $conf, return the actual settings to use.
ctools_export_ui::add_page in sites/all/modules/ulmus/ctools/plugins/export_ui/ctools_export_ui.class.php
ctools_export_ui::import_page in sites/all/modules/ulmus/ctools/plugins/export_ui/ctools_export_ui.class.php
Page callback to import information for an exportable item.
feeds_tamper_new_instance in sites/all/modules/ulmus/feeds_tamper/feeds_tamper.inc
Create a new plugin instance with default values filled in.

... See full list

File

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

Code

function ctools_export_crud_new($table, $set_defaults = TRUE) {
  $schema = ctools_export_get_schema($table);
  $export = $schema['export'];

  if (!empty($export['create callback']) && function_exists($export['create callback'])) {
    return $export['create callback']($set_defaults);
  }
  else {
    return ctools_export_new_object($table, $set_defaults);
  }
}