Commit f1c980c0 authored by Bobík's avatar Bobík

Install help and uninstall routine.

parent 47507704
name = Node authorize link
description = Generates link for view, edit, or delete node without login.
dependencies[] = computed_field
version = 7.x-1.0
core = 7.x
files[] = node_authlink.module
\ No newline at end of file
<?php
// $Id$
/**
* Inplementation of hook_install.
*/
function node_authlink_install() {
drupal_set_message(t('To setup Node authorize link module go to Structure → Node types → edit → Node authorize link.'));
}
/**
* Inplementation of hook_uninstall.
*/
function node_authlink_uninstall() {
field_delete_field('field_node_authlink_authkey');
}
\ No newline at end of file
<?php
// $Id$
/**
* @file
* TODO: Enter file description here.
*/
/**
* Alter of node_type_form.
*/
function node_authlink_form_node_type_form_alter(&$form, &$form_state) {
$form['node_authlink'] = array(
'#type' => 'fieldset',
'#title' => t('Node Auth Key'),
'#title' => t('Node authorize link'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#group' => 'additional_settings',
......@@ -104,7 +99,7 @@ function node_authlink_create_field_instance($node_type, $grants) {
}
$instance = array(
'label' => 'Node access link',
'label' => 'Node authorize key',
'widget' => array(
'type' => 'computed',
'weight' => '1',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment