[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

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

(no description)

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

Defines 45 functions

  audio_help()
  audio_menu()
  audio_theme()
  audio_node_info()
  audio_invoke_audioapi()
  audio_perm()
  audio_access()
  _audio_allow_download()
  _audio_allow_play()
  audio_cron()
  audio_link()
  audio_nodeapi()
  audio_view()
  audio_validate()
  audio_load()
  audio_insert()
  audio_update()
  _audio_save()
  audio_delete()
  audio_delete_revision()
  _audio_file_delete()
  audio_form()
  theme_audio_file_form()
  audio_node_form_validate()
  audio_node_form_submit()
  _audio_build_tag_form()
  audio_user()
  audio_block()
  audio_file_download()
  audio_get_tags_allowed()
  audio_get_tag_settings()
  audio_autocomplete()
  audio_get_directory()
  _audio_player_build_list()
  audio_get_players()
  audio_get_node_player()
  theme_audio_default_node_player()
  audio_clean_tag()
  audio_api_insert()
  audio_query_string_encode()
  audio_is_flash_playable()
  audio_views_api()
  audio_token_values()
  audio_token_list()
  audio_content_extra_fields()

Functions
Functions that are not part of a class:

audio_help($section, $arg)   X-Ref
Implementation of hook_help().


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


audio_theme()   X-Ref
Implementation of hook_theme


audio_node_info()   X-Ref
Implementation of hook_node_info().


audio_invoke_audioapi($op, &$node, $a3 = NULL, $a4 = NULL)   X-Ref
Invoke hook_audio api methods.

The audio module provide a hook for contributed modules. Use this rather than
the nodeapi so you don't have to worry about the module invocation order.

function hook_audio($op, $node, $arg1)

param: $op
param: $node

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


audio_access($op, $node = NULL)   X-Ref
Implementation of hook_access().


_audio_allow_download($node)   X-Ref
Is the current user allowed to download an audio node?

return:

_audio_allow_play($node)   X-Ref
Is the current user allowed to play an audio node?

return:

audio_cron()   X-Ref
Implements hook_cron().

This deletes old temp files.

audio_link($type, $node, $main = 0)   X-Ref
Implementation of hook_link().


audio_nodeapi(&$node, $op, $arg)   X-Ref
Implementation of hook_nodeapi().


audio_view(&$node, $teaser = FALSE, $page = FALSE)   X-Ref
Implementation of hook_view().


audio_validate(&$node, &$form)   X-Ref
Implementation of hook_validate().


audio_load($node)   X-Ref
Implementation of hook_load().


audio_insert(&$node)   X-Ref
Implementation of hook_insert().


audio_update(&$node)   X-Ref
Implementation of hook_update().


_audio_save(&$node)   X-Ref
Handle the busy work of saving the node's audio and file records.

param: $node Node opject.

audio_delete($node)   X-Ref
Implementation of hook_delete().


audio_delete_revision($node)   X-Ref
Delete a single revision.


_audio_file_delete($file)   X-Ref
Handle the busy work of deleting the file record and the file.

param: unknown_type $file

audio_form(&$node, &$form_state)   X-Ref
Implementation of hook_form().


theme_audio_file_form($form)   X-Ref
Theme function to put the form elements into a table. Steal some CSS from
the watchdog module.


audio_node_form_validate($form, &$form_state)   X-Ref
Node submit handler


audio_node_form_submit($form, &$form_state)   X-Ref
Node submit handler


_audio_build_tag_form($tag, $tag_settings, $value)   X-Ref
Construct a form element to represent a tag.

param: $tag
param: $tag_settings
param: $value
return:

audio_user($type, &$edit, &$user)   X-Ref
Implementation of hook_user().


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

Provides a block for browsing by metadata.

audio_file_download($filename)   X-Ref
Implementation of hook_file_download().


audio_get_tags_allowed()   X-Ref
Get an array of the allowed tags.

return:

audio_get_tag_settings()   X-Ref
Get an array of the tags and their settings.

return:

audio_autocomplete($tag = '', $value = '')   X-Ref
Retrieve autocomplete suggestions for existing audio metadata tags.

param: $tag
param: $value

audio_get_directory()   X-Ref
Get the audio files directory.

return:

_audio_player_build_list()   X-Ref
Loads the player plugs-ins and returns their details.

return:

audio_get_players($op = 'names', $name = '')   X-Ref
Return information on the installed player plugins.

param: $op
param: $name

audio_get_node_player($node, $playername = NULL)   X-Ref
Build HTML to play an audio node.

param: $node
param: $playername
return:

theme_audio_default_node_player($node)   X-Ref
Provide a link to the audio file.

param: $node

audio_clean_tag($string)   X-Ref
Take a tag and force it to be a-z 0-9 _ -

param: $string
return:

audio_api_insert($filepath, $title_format = NULL, $body = NULL, $tags = array()   X-Ref
Create audio nodes from a file.

Function for other modules to use to create a audio node from a file. Once
you've created it you can make any changes and then save it using
node_save().

param: $filepath
param: $title_format
param: $body
param: $taxonomy
param: $tags
return:

audio_query_string_encode($query, $exclude = array()   X-Ref
Parse an array into a valid urlencoded query string.

This function is a work-around for a drupal_urlencode issue in core.
See: http://drupal.org/node/158687 for details.

param: $query
param: $exclude
param: $parent
return:

audio_is_flash_playable($node)   X-Ref
Determines if an audio node can be played by Flash players.

param: $node
return:

audio_views_api()   X-Ref
Implementation of hook_view_api().


audio_token_values($type, $object = NULL)   X-Ref
Implementation of the token.module's hook_token_values().

param: $type
param: $object
return:

audio_token_list($type = 'all')   X-Ref
Implementation of the token.module's hook_token_values().

param: $type
return:

audio_content_extra_fields($type_name)   X-Ref
Implements hook_content_extra_fields()

CCK hook to allow sorting of the audio settings field.



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