Contributions API

content.module

Version

1.290 (checked in on 2008/04/25 at 01:08:34 by karens)

Description

Allows administrators to associate custom fields to content types.

Constants

Namesort iconDescription
CONTENT_CALLBACK_CUSTOM
CONTENT_CALLBACK_DEFAULT
CONTENT_CALLBACK_NONE
CONTENT_CONTEXTS_ADVANCED
CONTENT_CONTEXTS_ALL
CONTENT_CONTEXTS_SIMPLE
CONTENT_DB_STORAGE_PER_CONTENT_TYPE
CONTENT_DB_STORAGE_PER_FIELD
CONTENT_HANDLE_CORE
CONTENT_HANDLE_MODULE

Functions

Namesort iconDescription
content_allowed_valuesCreate an array of the allowed values for this field.
content_alterNodeapi 'alter' op.
content_associate_fieldsAllows a module to update the database for fields and columns it controls.
content_cache_tablenameGenerate table name for the content cache table.
content_callbackHelper function for determining the behavior of a field or a widget with respect to a given operation. (currently used for field 'view', and widget 'default values' and 'multiple values')
content_clear_type_cacheClear the cache of content_types; called in several places when content information is changed.
content_content_extra_fieldsImplementation of hook_content_extra_fields.
content_content_fieldapiDebugging using hook_content_fieldapi.
content_database_infoRetrieve the database storage location(s) for a field.
content_default_valueHelper function to return the correct default value for a field.
content_deleteNodeapi 'delete' op.
content_delete_revisionNodeapi 'delete_revision' op.
content_devel_cachesImplementation of hook_devel_caches. Include {cache_content} in the list of tables cleared by devel's 'empty cache'
content_elementsHook elements().
content_extra_field_weightRetrieve the user-defined weight for non-CCK node 'fields'.
content_fieldImplementation of hook_field(). Handles common field housekeeping.
content_fieldsReturn a list of all fields.
content_field_tablenameGenerate table name for the content field table.
content_flush_cachesImplementation of hook_flush_caches.
content_formatFormat a field item for display.
content_form_alterImplementation of hook_form_alter().
content_handleHelper function for determining the handling of a field, widget or formatter with respect to a given operation.
content_help
content_initImplementation of hook_init().
content_insertNodeapi 'insert' op.
content_instance_tablenameGenerate table name for the content field instance table.
content_loadLoad data for a node type's fields.
content_menuImplementation of hook_menu().
content_menu_needs_rebuildFlag / unflag the menus for rebuilding, or read the current value of the flag.
content_nodeapiImplementation of hook_nodeapi().
content_node_typeImplementation of hook_node_type() React to change in node types
content_notifyModules notify Content module when uninstalled, disabled, etc.
content_prepare_translationNodeapi 'prepare translation' op.
content_presaveNodeapi 'presave' op.
content_set_emptyHelper function to set NULL values and unset items where needed.
content_storageTODO : PHPdoc
content_storage_typeHelper function for identifying the storage type for a field.
content_table_schemaA basic schema used by all field and type tables.
content_themeImplementation of hook_theme().
content_transpose_array_rows_colsManipulate a 2D array to reverse rows and columns.
content_typesReturn a list of all content types.
content_updateNodeapi 'update' op.
content_validateNodeapi 'validate' op.
content_viewNodeapi 'view' op.
content_write_recordSave a record to the database based upon the schema.
template_preprocess_content_field_viewProcess variables for field.tpl.php.
theme_content_multiple_valuesTheme an individual form element.
_content_admin_display_contextsArray of possible display contexts for fields.
_content_field_invokeInvoke a field hook.
_content_field_invoke_defaultInvoke content.module's version of a field hook.
_content_field_typesReturn a list of field types.
_content_sort_itemsHelper function to sort items in a field according to user drag-n-drop reordering.
_content_sort_items_helperSort function for items order. (copied form element_sort(), which acts on #weight keys)
_content_tablenameGenerate a table name for a field or a content type.
_content_type_infoCollate all information on content types, fields, and related structures.
_content_widget_typesReturn a list of widget types.