You are here

function exif_helper_menu in Exif 6

@file Intention of this little module: exif.module needs to have a weight of -10 at least it has to be processed before CCK is processed, so that EXIF information can be taken from the fields and be written into the CCK fields.

Problem: We don't want to display the emty fields on node creation, since they are reserved for exif information -> we don't want to confuse users with this, so are going to make them hidden -> Information needs to be processed AFTER CCK.

Solution: Creating a new little module.

File

exif_helper/exif_helper.module, line 15
Intention of this little module: exif.module needs to have a weight of -10 at least it has to be processed before CCK is processed, so that EXIF information can be taken from the fields and be written into the CCK fields.

Code

function exif_helper_menu() {
  $items['admin/settings/exif/visibility'] = array(
    'title' => 'visibility',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'exif_helper_settings_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'description' => t('Some visibility settings'),
    'access callback' => 'user_access',
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}