Changeset 142 for gna-drupal

Show
Ignore:
Timestamp:
05/27/08 01:17:44 (13 months ago)
Author:
dimus
Message:

rename gna_registry_contact module to gna_contact

Location:
gna-drupal/trunk/drupal-5/gna_registry
Files:
2 moved

Legend:

Unmodified
Added
Removed
  • gna-drupal/trunk/drupal-5/gna_registry/gna_contact.info

    r141 r142  
    44dependencies = simpletest gna_registry 
    55package = GNA 
    6 version = '$Rev$' 
     6version = "$Rev$" 
  • gna-drupal/trunk/drupal-5/gna_registry/gna_contact.module

    r140 r142  
    1010 * Implementation of hook_access(). 
    1111 */ 
    12 function gna_registry_contact_access($op, $node, $account) { 
     12function gna_contact_access($op, $node, $account) { 
    1313  if ($op == 'view'){ 
    1414    return TRUE; 
     
    2323 * Implementation of hook_delete(). 
    2424 */ 
    25 function gna_registry_contact_delete(&$node) { 
     25function gna_contact_delete(&$node) { 
    2626  $gc = new GnaContact; 
    2727  $gc->init($node->nid, $node->vid); 
     
    3434 */ 
    3535function gna_registry_contact_form($node) { 
    36   $form['contact_id'] = array( 
     36  $form['id'] = array( 
    3737    '#type' => 'hidden', 
    3838    '#default_value' => $node->id, 
     
    4040  ); 
    4141 
    42   $form['contact_title'] = array( 
     42  $form['title'] = array( 
    4343    '#type' => 'textfield', 
    4444    '#title' => t('Title'), 
     
    4747  ); 
    4848 
    49   $form['contact_first_name'] = array( 
     49  $form['first_name'] = array( 
    5050    '#type' => 'textfield', 
    5151    '#title' => t('First Name'), 
     
    5353    '#required' => FALSE, 
    5454  ); 
    55   $form['contact_last_name'] = array( 
     55  $form['last_name'] = array( 
    5656    '#type' => 'textfield', 
    5757    '#title' => t('Last Name'), 
     
    5959    '#required' => FALSE, 
    6060  ); 
    61   $form['contact_email'] = array( 
     61  $form['email'] = array( 
    6262    '#type' => 'textfield', 
    6363    '#title' => t('Email'), 
     
    6565    '#required' => FALSE, 
    6666  ); 
    67   $form['contact_telephone'] = array( 
     67  $form['telephone'] = array( 
    6868    '#type' => 'textfield', 
    6969    '#title' => t('Telephone'), 
     
    7171    '#required' => FALSE, 
    7272  ); 
    73   $form['contact_address'] = array( 
     73  $form['address'] = array( 
    7474    '#type' => 'textfield', 
    7575    '#title' => t('Address'), 
     
    8989} 
    9090 
    91 function gna_registry_contact_form_validate($form_id, $form_values){ 
     91function gna_contact_form_validate($form_id, $form_values){ 
    9292  //TODO: implement sensible validation in the form 
    9393  if ($form_values['contact_first_name'] == 'King Kong'){ 
     
    101101 * Implementation of hook_insert(). 
    102102 */ 
    103 function gna_registry_contact_insert($node) { 
     103function gna_contact_insert($node) { 
    104104  $gc = new GnaContact; 
    105105  $gc->create($node); 
     
    110110 * Implementation of hook_load(). 
    111111 */ 
    112 function gna_registry_contact_load($node) { 
     112function gna_contact_load($node) { 
    113113  $gc = new GnaContact; 
    114114  $gc->init($node->nid, $node->vid); 
     
    120120 * Implementation of hook_node_info(). 
    121121 */ 
    122 function gna_registry_contact_node_info() { 
     122function gna_contact_node_info() { 
    123123  return array( 
    124124     'gna_registry_contact' => array( 
    125125      'name' => t('GNA Registry Contact'), 
    126       'module' => 'gna_registry_contact', 
     126      'module' => 'gna_contact', 
    127127      'description' => t('GNA contact information'), 
    128       'has_title' => TRUE, 
    129       'title_label' => t('Name'), 
     128      'has_title' => FALSE, 
     129      //'title_label' => t('Name'), 
    130130      'has_body' => FALSE, 
    131131      'locked' => TRUE, 
     
    138138 * Implementation of hook_update(). 
    139139 */ 
    140 function gna_registry_contact_update($node) { 
     140function gna_contact_update($node) { 
    141141  $gc = new GnaContact; 
    142142  $gc->init($node->nid, $node->vid); 
     
    148148 * Implementation of hook_validate(). 
    149149 */ 
    150 function gna_registry_contact_validate($node, &$form) { 
     150function gna_contact_validate($node, &$form) { 
    151151  // TODO: Enter sensible form validation code here 
    152152  if ($form['contact_first_name'] == 'King Kong'){ 
     
    161161 * Implementation of hook_view(). 
    162162 */ 
    163 function gna_registry_contact_view($node, $teaser = FALSE, $page = FALSE) { 
     163function gna_contact_view($node, $teaser = FALSE, $page = FALSE) { 
    164164  // TODO: Insert additional code (call to theme functions, etc.) to execute when viewing a node, for example: 
    165165  // $node = node_prepare($node, $teaser); 
     
    221221 * Implementation of hook_perm(). 
    222222 */ 
    223 function gna_registry_contact_perm() { 
     223function gna_contact_perm() { 
    224224  return array('GNA Registry Admin'); 
    225225}