From ca7d08e2b8124353bc56f8dbdfc3ea32da669b7e Mon Sep 17 00:00:00 2001 From: Silvio Date: Thu, 7 Oct 2010 18:44:31 -0300 Subject: CVS update --- exif_helper/CVS/Entries | 3 -- exif_helper/CVS/Repository | 1 - exif_helper/CVS/Root | 1 - exif_helper/CVS/Tag | 1 - exif_helper/exif_helper.info | 5 --- exif_helper/exif_helper.module | 80 ------------------------------------------ 6 files changed, 91 deletions(-) delete mode 100644 exif_helper/CVS/Entries delete mode 100644 exif_helper/CVS/Repository delete mode 100644 exif_helper/CVS/Root delete mode 100644 exif_helper/CVS/Tag delete mode 100644 exif_helper/exif_helper.info delete mode 100644 exif_helper/exif_helper.module (limited to 'exif_helper') diff --git a/exif_helper/CVS/Entries b/exif_helper/CVS/Entries deleted file mode 100644 index 7c17ed2..0000000 --- a/exif_helper/CVS/Entries +++ /dev/null @@ -1,3 +0,0 @@ -/exif_helper.info/1.1.2.1/Thu Feb 5 20:11:53 2009/-kb/TDRUPAL-6--1 -/exif_helper.module/1.1.2.2/Fri Mar 19 22:17:00 2010//TDRUPAL-6--1 -D diff --git a/exif_helper/CVS/Repository b/exif_helper/CVS/Repository deleted file mode 100644 index 3908928..0000000 --- a/exif_helper/CVS/Repository +++ /dev/null @@ -1 +0,0 @@ -contributions/modules/exif/exif_helper diff --git a/exif_helper/CVS/Root b/exif_helper/CVS/Root deleted file mode 100644 index 127da18..0000000 --- a/exif_helper/CVS/Root +++ /dev/null @@ -1 +0,0 @@ -:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib diff --git a/exif_helper/CVS/Tag b/exif_helper/CVS/Tag deleted file mode 100644 index d7ee0a3..0000000 --- a/exif_helper/CVS/Tag +++ /dev/null @@ -1 +0,0 @@ -TDRUPAL-6--1 diff --git a/exif_helper/exif_helper.info b/exif_helper/exif_helper.info deleted file mode 100644 index a63c51e..0000000 --- a/exif_helper/exif_helper.info +++ /dev/null @@ -1,5 +0,0 @@ -; $Id: -name = Exif Helper -description = "Some helper functions." -package = Image -core = 6.x \ No newline at end of file diff --git a/exif_helper/exif_helper.module b/exif_helper/exif_helper.module deleted file mode 100644 index e19ca5f..0000000 --- a/exif_helper/exif_helper.module +++ /dev/null @@ -1,80 +0,0 @@ - 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. - */ - -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; -} - -/** - * implementation of hook_form_alter - * @param $form_id - * @param $form - */ -function exif_helper_form_alter(&$form, $form_state, $form_id) { - - if ($form['#id'] != 'node-form') { - return; - } - - $ar_keys = array(); - foreach ($form as $key => $value) { - $ar_keys[] = array('field_name' => $key); - } - $exif = _exif_get_class(); - $ar_exif_fields = $exif->getExifFields($ar_keys); - $node = $form['#node']; - - if (($node->nid > 0 && variable_get('exif_helper_show_on_update', 0)==0) || - (!isset($node->nid) && variable_get('exif_helper_show_on_creation', 0) == 0)) { - foreach ($ar_exif_fields as $variable) { - $form["field_" . $variable['section'] . "_" . $variable['tag']]['#type'] = 'hidden'; - } - } - -} - -/** - * Form definition for the admin of the helper module - */ -function exif_helper_settings_form() { - $form['exif_helper'] = array( - '#value' => t('When a user creates a node by default the CCK information will not be shown. - This doesn\'t make any sense and would only confuse the user. The values for those fields - is taken from the picture it-self. Nevertheless the information is visibile when you display - the node just plain or through views or whatever. We are just talking here about the actual - creation form'), - ); - $form['exif_helper_show_on_creation'] = array( - '#type' => 'checkbox', - '#title' => t('Show CCK Fields on Node-Creation form'), - '#default_value' => variable_get('exif_helper_show_on_creation', 0), - ); - - $form['exif_helper_show_on_update'] = array( - '#type' => 'checkbox', - '#title' => t('Show CCK Fields on Node-Update form'), - '#default_value' => variable_get('exif_helper_show_on_update', 0), - ); - return system_settings_form($form); -} \ No newline at end of file -- cgit v1.2.3