You are here

function hook_emfield_field_columns_extra in Embedded Media Field 6.2

Same name and namespace in other branches
  1. 6.3 hooks/emfield.php \hook_emfield_field_columns_extra()
  2. 6 hooks/emfield.php \hook_emfield_field_columns_extra()

Generally used for metadata, this will add an array of database column information to be saved when present in the field. Note that this hook is used to return columns to be saved for all Embedded Media Fields, and is currently unused by the core Embedded Media Field modules.

2 functions implement hook_emfield_field_columns_extra()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

embonus_emfield_field_columns_extra in contrib/embonus/embonus.module
Implementation of hook_emfield_field_columns_extra().
emvideo_emfield_field_columns_extra in contrib/emvideo/emvideo.module
Implements hook_emfield_field_columns_extra(). This is called to add 2 extra columns to the database to store the title and description.
1 invocation of hook_emfield_field_columns_extra()
_emfield_field_columns in ./emfield.cck.inc
Helper function to consistantly define field columns.

File

hooks/emfield.php, line 202
Document various hooks for Embedded Media Field.

Code

function hook_emfield_field_columns_extra($field) {
  return array(
    'author' => array(
      'description' => 'The original author of the third party media.',
      'type' => 'varchar',
      'length' => 255,
      'not null' => TRUE,
      'default' => '',
    ),
  );
}