You are here

function galleria_update_7003 in Galleria 7

Add support for Galleria plugins.

File

./galleria.install, line 223
Install, update and uninstall functions for the galleria module.

Code

function galleria_update_7003() {
  $new_fields = array(
    'plugins' => array(
      'description' => 'The Galleria plugins to be loaded.',
      'type' => 'blob',
      'size' => 'big',
      'serialize' => TRUE,
    ),
  );
  foreach ($new_fields as $field => $spec) {
    db_add_field('galleria_optionset', $field, $spec);
  }
  return t('You may now select plugins to be loaded with each Galleria instance.');
}