[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/comment_upload/ -> comment_upload.module (summary)

(no description)

File Size: 671 lines (22 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 24 functions

  comment_upload_menu()
  comment_upload_perm()
  comment_upload_theme()
  comment_upload_form_alter()
  comment_upload_alter_comment_form()
  comment_upload_file_download()
  comment_upload_nodeapi()
  comment_upload_comment()
  comment_upload_value_to_default()
  comment_upload_upload_form()
  comment_upload_create_file_element()
  comment_upload_comment_delete()
  comment_upload_comment_view()
  comment_upload_save()
  comment_upload_js()
  comment_upload_process_files()
  comment_upload_comment_form_submit()
  comment_upload_comment_form_validate()
  comment_upload_load_files()
  comment_upload_delete_file()
  comment_upload_sort_files()
  theme_comment_upload_form_current()
  theme_comment_upload_form_new()
  template_preprocess_comment_upload_attachments()

Functions
Functions that are not part of a class:

comment_upload_menu()   X-Ref
Implementation of hook_menu().


comment_upload_perm()   X-Ref
Implementation of hook_perm().


comment_upload_theme()   X-Ref
No description

comment_upload_form_alter(&$form, $form_state, $form_id)   X-Ref
Add an Attachments for comments setting to the content type settings forms.

Implementation of hook_form_alter().

comment_upload_alter_comment_form(&$form, $form_state)   X-Ref
Alter the comment form to support AHAH uploads.

Note; not a hook implementation.

comment_upload_file_download($filepath)   X-Ref
Implementation of hook_file_download().


comment_upload_nodeapi(&$node, $op, $arg = 0)   X-Ref
No description

comment_upload_comment(&$a1, $op)   X-Ref
Implementation of hook_comment().


comment_upload_value_to_default($build_form, &$form)   X-Ref
Traverse a build form and copy #value to corresponding #default_values in an unbuild form.

param: array $build_form
param: array $form

comment_upload_upload_form($files = array()   X-Ref
Build the section of the upload_form that holds the attachments table and upload element.

param: array $files
return: array

comment_upload_create_file_element($file, $count)   X-Ref
Create the form elements for one file in the attachments table.

param: object $file
param: integer $count
return: array

comment_upload_comment_delete($comment)   X-Ref
Remove files when the comment is deleted.

param: object $comment

comment_upload_comment_view(&$comment)   X-Ref
Add attachments to the comment on view or preview.

param: object $comment

comment_upload_save($comment)   X-Ref
Save the changes made to attachments.

param: array $comment

comment_upload_js()   X-Ref
React to the Attach button; update file information on AHAH request.


comment_upload_process_files(&$form, &$form_state)   X-Ref
Process file uploads.

param: array $form
param: array $form_state

comment_upload_comment_form_submit($form, &$form_state)   X-Ref
Additional submit handler for the comment form.

param: array $form
param: array $form_state

comment_upload_comment_form_validate($form, &$form_state)   X-Ref
Submit handler for the preview and attach button.

param: array $form
param: array $form_state

comment_upload_load_files($cid)   X-Ref
Load attachments that belong to the comment.

param: integer $cid
return: array

comment_upload_delete_file($file)   X-Ref
Delete a file and its associated records.

param: array $file

comment_upload_sort_files($a, $b)   X-Ref
Sort on weight, if weights are equal compare fid.

uasort callback.

theme_comment_upload_form_current(&$form)   X-Ref
Theme the attachments list in the upload form.

Taken from upload.module.


theme_comment_upload_form_new($form)   X-Ref
Theme the upload a new attachment part of the upload form.

Taken from upload.module.


template_preprocess_comment_upload_attachments(&$variables)   X-Ref
No description



Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7