| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 578 lines (24 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| _project_release_form(&$release, &$form_state) X-Ref |
| Private helper to implement hook_form(). Create the project release node form. |
| _project_release_form_add_version_element(&$form, $release, $modify, $format, $name, $title, $description = '', $size = 10, $required = FALSE) X-Ref |
| Modifies the given $form array to add the appropriate form element for the requested version field. Since the 20+ lines of code in here have to be duplicated 6 times in project_release_form(), this function exists so we can reuse the code. param: $form Form array to modify param: $release Relase node the form is for param: $modify Boolean indicating if we should allow modifications param: $format Version format string for this project param: $name Name of this version element param: $title Translatable title of the form element param: $description Translatable description of the form element. param: $size Size of the form element param: $required Boolean for if the form element should be required |
| _project_release_form_add_text_element(&$form, $title, $value, $is_edit, $admin, $required = TRUE, $size = 40, $maxlength = 50) X-Ref |
| Modifies the given $form array to add the appropriate form element for the desired text field. Since the 16+ lines of code in here have to be duplicated 5 times in project_release_form(), this function exists so we can reuse the code. param: $form param: $title param: $value param: $is_edit param: $admin param: $required param: $size param: $maxlength |
| _project_release_node_form_validate(&$form, &$form_state) X-Ref |
| Private callback to validate a release node form. |
| project_release_validate_file_extension($file) X-Ref |
| No description |
| project_release_node_submit(&$form, $form_state) X-Ref |
| No description |
| project_release_db_save($node, $is_new) X-Ref |
| Helper method to take data out of a $node object and store it into the DB as necessary. Sadly, db_query() doesn't let us store NULL in the DB, since those get cast to 0. Therefore, we have to do some manual effort to dynamically create the appropriate SQL depending on which version fields are set in the release node. param: $node param: $is_new Is this a new release node, or are we updating? |
| project_release_add_redirect_page() X-Ref |
| Redirect node/add/project_release/* to node/add/project-release/*. |
| project_release_pick_project_form() X-Ref |
| Form builder for a simple form to select a project when creating a new release (as the first "page", but this is not really a multi-page form). |
| project_release_pick_project_form_validate($form, &$form_state) X-Ref |
| No description |
| project_release_pick_project_form_submit($form, &$form_state) X-Ref |
| No description |
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |