Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
N
node_authlink
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
node_authlink
Commits
f1c980c0
Commit
f1c980c0
authored
May 29, 2011
by
Bobík
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Install help and uninstall routine.
parent
47507704
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
7 deletions
+19
-7
node_authlink.info
node_authlink.info
+1
-0
node_authlink.install
node_authlink.install
+16
-0
node_authlink.module
node_authlink.module
+2
-7
No files found.
node_authlink.info
View file @
f1c980c0
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
node_authlink.install
0 → 100644
View file @
f1c980c0
<?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
node_authlink.module
View file @
f1c980c0
<?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 a
ccess link
'
,
'label'
=>
'Node a
uthorize key
'
,
'widget'
=>
array
(
'type'
=>
'computed'
,
'weight'
=>
'1'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment