[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/station/archive/ -> station_archive.module (summary)

(no description)

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

Defines 22 functions

  station_archive_help()
  station_archive_menu()
  station_archive_perm()
  station_archive_block()
  _station_archive_browse_block()
  station_archive_nodeapi()
  station_archive_get_programs()
  station_archive_form_alter()
  station_archive_node_form_validate()
  station_archive_node_info_form()
  station_archive_cron()
  _station_archive_delete_old_nodes()
  _station_archive_import_files()
  _station_archive_update_program_list()
  _station_archive_add_file()
  _station_archive_get_taxonomy()
  _station_archive_get_vid()
  station_archive_taxonomy()
  _station_archive_get_hour_tids()
  _station_archive_get_day_term()
  _station_archive_get_hour_term()
  station_archive_views_api()

Functions
Functions that are not part of a class:

station_archive_help($section = '')   X-Ref
Implementation of hook_help().


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


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


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


_station_archive_browse_block()   X-Ref
Return HTML for browsing the taxonomy.


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


station_archive_get_programs()   X-Ref
Get an array containing information about programs.

return:

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


station_archive_node_form_validate(&$form, &$form_state)   X-Ref
No description

station_archive_node_info_form($node)   X-Ref
Create form elements to display the station archive information for an audio
node.

param: $node
return:

station_archive_cron()   X-Ref
Implementation of hook_cron().

Remove old files, import new ones.

_station_archive_delete_old_nodes()   X-Ref
Find and delete old archived audio nodes.

We need to make sure we only delete nodes created by this module. So, we
search look at nodes included in our taxonomy.

_station_archive_import_files()   X-Ref
Scan the import directory looking for MP3s to import.


_station_archive_update_program_list()   X-Ref
Update the entries in the {station_archive_program} table.

Views uses the {station_archive_program} to group audio nodes to what may be
remote programs. This function keeps it up to date.

_station_archive_add_file($file)   X-Ref
Add a file to the archive.

Create an audio node for an mp3 or ogg file that is named with an hour's
timestamp. Use the timestamp to load the program information.

param: $file
return:

_station_archive_get_taxonomy($local_timestamp)   X-Ref
Find/create the term ids for a day and hour based on a timestamp.

param: $local_timestamp
return:

_station_archive_get_vid()   X-Ref
Find or create a Station Archive vocabulary ID.

return:

station_archive_taxonomy($op, $type, $object = NULL)   X-Ref
Implementation of hook_taxonomy().

Delete our vocabulary variable if the vocabulary is deleted.

_station_archive_get_hour_tids($vid, $hour_string = '')   X-Ref
Give a string with hours return an array of vocabulary term ids for the
given hours.

param: $vid
param: $hour_string

_station_archive_get_day_term($vid, $day)   X-Ref
Find the taxonomy term for a day.

param: $vid
param: $day
return:

_station_archive_get_hour_term($dayterm, $hour)   X-Ref
Find or create taxonomy term for a day.

param: $dayterm
param: $hour
return:

station_archive_views_api()   X-Ref
Implementation of hook_views_api().




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