You are here

function hook_emfield_field_columns_extra in Embedded Media Field 6.3

Same name and namespace in other branches
  1. 6 hooks/emfield.php \hook_emfield_field_columns_extra()
  2. 6.2 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 invocations of hook_emfield_field_columns_extra()
_emfield_field_columns in ./emfield.cck.inc
Helper function to consistantly define field columns.
_emfield_field_columns in deprecated/emfield-deprecated.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' => '',
    ),
  );
}