| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 1913 lines (72 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| content_types_overview() X-Ref |
| Menu callback; replacement for node_overview_types(). |
| theme_content_overview_links() X-Ref |
| No description |
| content_fields_list() X-Ref |
| Menu callback; lists all defined fields for quick reference. |
| content_inactive_message($type_name) X-Ref |
| Helper function to display a message about inactive fields. |
| content_field_overview_form(&$form_state, $type_name) X-Ref |
| Menu callback; listing of fields for a content type. Allows fields to be reordered and nested in fieldgroups using JS drag-n-drop. Non-CCK form elements can also be moved around. |
| content_field_overview_form_validate($form, &$form_state) X-Ref |
| No description |
| _content_field_overview_form_validate_add_new($form, &$form_state) X-Ref |
| Helper function for content_field_overview_form_validate. Validate the 'add new field' row. |
| _content_field_overview_form_validate_add_existing($form, &$form_state) X-Ref |
| Helper function for content_field_overview_form_validate. Validate the 'add existing field' row. |
| content_field_overview_form_submit($form, &$form_state) X-Ref |
| No description |
| content_display_overview_form(&$form_state, $type_name, $contexts_selector = 'basic') X-Ref |
| Menu callback; presents a listing of fields display settings for a content type. Form includes form widgets to select which fields appear for teaser, full node and how the field labels should be rendered. |
| content_display_overview_form_submit($form, &$form_state) X-Ref |
| Submit handler for the display overview form. |
| content_field_type_options() X-Ref |
| Return an array of field_type options. |
| content_widget_type_options($field_type = NULL, $by_label = FALSE) X-Ref |
| Return an array of widget type options for a field type. If no field type is provided, returns a nested array of all widget types, keyed by field type human name |
| content_existing_field_options($type_name) X-Ref |
| Return an array of existing field to be added to a node type. |
| content_field_basic_form(&$form_state, $form_values) X-Ref |
| A form element for selecting field, widget, and label. |
| content_field_basic_form_submit($form, &$form_state) X-Ref |
| Create a new field for a content type. |
| content_field_remove_form(&$form_state, $type_name, $field_name) X-Ref |
| Menu callback; present a form for removing a field from a content type. |
| content_field_remove_form_submit($form, &$form_state) X-Ref |
| Remove a field from a content type. |
| content_field_edit_form(&$form_state, $type_name, $field_name) X-Ref |
| Menu callback; presents the field editing page. |
| content_field_edit_form_validate($form, &$form_state) X-Ref |
| Validate a field's settings. |
| content_field_edit_form_submit_update_basic($form, &$form_state) X-Ref |
| Button submit handler. |
| content_field_edit_form_submit($form, &$form_state) X-Ref |
| Save a field's settings after editing. |
| content_get_destinations($destinations) X-Ref |
| Helper function to handle multipage redirects. |
| content_alter_schema($previous_field, $new_field) X-Ref |
| Content Schema Alter Alter the database schema. TODO figure out an API-safe way to use batching to update the nodes that will be affected by this change so the node_save() hooks will fire. |
| content_alter_db_analyze($previous_field, $new_field) X-Ref |
| Schema Alter Analyze Analyze if changes will remove columns or delta values, thus losing data. Do this so we can delete the data and fire the necessary hooks, before we actually alter the schema. |
| content_alter_db($previous_field, $new_field) X-Ref |
| Perform adds, alters, and drops as needed to synchronize the database with new field definitions. |
| content_alter_db_cleanup() X-Ref |
| Helper function for handling cleanup operations when schema changes are made. |
| _content_overview_order(&$form, $field_rows, $group_rows) X-Ref |
| Helper function to order fields and groups when theming (preprocessing) overview forms. The $form is passed by reference because we assign depths as parenting relationships are sorted out. |
| content_alter_fields($previous_field, $new_field) X-Ref |
| Batching process for changing the field schema, running each affected node through node_save() first, to fire all hooks. TODO This is just a placeholder for now because batching can't be safely used with API hooks. Need to come back and figure out how to incorporate this and get it working properly when the fields are altered via the API. |
| _content_alter_fields_finished($success, $results, $operations) X-Ref |
| Content Replace Fields 'finished' callback. |
| content_alter_db_mask($previous_field, $new_field) X-Ref |
| Create a mask for the column data that should be deleted in each field. This is a bit tricky. We could theoretically have some columns that should be set to empty and others with valid info that should not be emptied out. But if delta values > X are to be wiped out, they need to wipe out even columns that still have values. And the NULL values in these columns after the alteration may be enough to make the item 'empty', as defined by hook_content_is_empty(), even if some columns still have values, so all these things need to be tested. |
| content_field_batch_update($updates, &$context) X-Ref |
| Content Field Batch Update Operation Find all nodes that contain a field and update their values. param: $updates |
| content_field_replace($nid, $updates) X-Ref |
| Content Field Replace Replace field values in a node from an array of update values. Supply an array of one or more fields and masks of field column values to be replaced into field values, one mask for basic values and an optional different mask for values in field items equal to or higher than a specified delta. The masks should contain only the column values to be substituted in. The supplied values will be merged into the existing values to replace only the values in the mask, leaving all other values unchanged. The ability to set different masks starting at a delta allows the possibility of setting values above a certain delta to NULL prior to altering the database schema. param: $nid param: $updates |
| _element_validate_integer($element, &$form_state) X-Ref |
| Helper form element validator : integer. |
| _element_validate_integer_positive($element, &$form_state) X-Ref |
| Helper form element validator : integer > 0. |
| _element_validate_number($element, &$form_state) X-Ref |
| Helper form element validator : number. |
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |