[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/image/contrib/image_attach/ -> image_attach.module (summary)

(no description)

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

Defines 18 functions

  image_attach_menu()
  image_attach_perm()
  image_attach_admin_settings()
  image_attach_block()
  image_attach_form_node_type_form_alter()
  image_attach_form_alter()
  image_attach_image_add_submit()
  image_attach_validate()
  image_attach_node_form_submit()
  image_attach_nodeapi()
  _image_attach_node_load_attached()
  _image_attach_get_image_nodes()
  image_attach_views_api()
  image_attach_theme()
  theme_image_attach_attached_images_node()
  theme_image_attach_attached_images_block()
  theme_image_attach_attached_images()
  image_attach_content_extra_fields()

Functions
Functions that are not part of a class:

image_attach_menu()   X-Ref
Implementation of hook_menu()


image_attach_perm()   X-Ref
Implementation of hook_perm()


image_attach_admin_settings()   X-Ref
No description

image_attach_block($op = 'list', $delta = 0, $edit = array()   X-Ref
Implementation of hook_block().


image_attach_form_node_type_form_alter(&$form, $form_state)   X-Ref
Implementation of hook_form_FORM_ID_alter().

Add settings to the content type settings form.

image_attach_form_alter(&$form, $form_state, $form_id)   X-Ref
Implementation of hook_form_alter().


image_attach_image_add_submit(&$form, &$form_state)   X-Ref
Save attached image nids and rebuild form.

This submit function adds the new images and returns to the
node edit form directly afterwards, without creating the new node yet.

image_attach_validate(&$form, &$form_state)   X-Ref
Image attach validation handler for node edit form.

Check that the number of images has not exceeded the maximum.
Capture node form submission and immediately create an image if one has been
uploaded.
Note that the new image nodes are created even on preview. Taking several
attempts may create trash.

image_attach_node_form_submit(&$form, &$form_state)   X-Ref
Extra submit handler for node forms.


image_attach_nodeapi(&$node, $op, $teaser, $page)   X-Ref
Implementation of hook_nodeapi().


_image_attach_node_load_attached($attached_nids, $teaser = FALSE)   X-Ref
Helper function for hook_nodeapi: view op.
Loads all the required attached image nodes.

param: $attached_nids
param: $teaser
return:

_image_attach_get_image_nodes($nids = array()   X-Ref
Fetch an array of all candidate referenced nodes, for use in presenting the
selection form to the user.

param: $nids

image_attach_views_api()   X-Ref
Views 2 API handler


image_attach_theme()   X-Ref
Implementation of hook_theme() registry.


theme_image_attach_attached_images_node($nid, $image_nodes, $img_size, $teaser = FALSE)   X-Ref
Theme attached images shown in nodes.

param: $nid
param: $image_nodes
param: $img_size
param: $teaser

theme_image_attach_attached_images_block($nid, $image_nodes = array()   X-Ref
Theme the attached images block.

param: $nid
param: $image_nodes

theme_image_attach_attached_images($nid, $image_nodes = array()   X-Ref
Generic theme function for any set of attached images.

param: $nid
param: $image_nodes
param: $options

image_attach_content_extra_fields($type_name)   X-Ref
Implementation of hook_content_extra_fields().




Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7