Tripal
Functions
tripal_library.chado_node.inc File Reference

Functions

 tripal_library_node_info ()
 
 chado_library_form ($node, &$form_state)
 
 chado_library_validate ($node, $form, &$form_state)
 
 chado_library_insert ($node)
 
 chado_library_update ($node)
 
 chado_library_load ($nodes)
 
 chado_library_delete (&$node)
 
 tripal_library_node_access ($node, $op, $account)
 
 tripal_library_node_view ($node, $view_mode, $langcode)
 
 tripal_library_node_presave ($node)
 
 tripal_library_node_insert ($node)
 
 tripal_library_node_update ($node)
 
 chado_library_chado_node_default_title_format ()
 
 chado_library_chado_node_default_url_format ()
 

Detailed Description

Implements the library node content type

Function Documentation

◆ chado_library_chado_node_default_title_format()

chado_library_chado_node_default_title_format ( )

Implements [content_type]_chado_node_default_title_format().

Defines a default title format for the Chado Node API to set the titles on Chado library nodes based on chado fields.

◆ chado_library_chado_node_default_url_format()

chado_library_chado_node_default_url_format ( )

Implements hook_chado_node_default_url_format().

Designates a default URL format for library nodes.

◆ chado_library_delete()

chado_library_delete ( $node)

Implements hook_delete().

Delete data from drupal and chado databases when a node is deleted

◆ chado_library_form()

chado_library_form (   $node,
$form_state 
)

Implements hook_form().

When editing or creating a new node of type 'chado_library' we need a form. This function creates the form that will be used for this.

◆ chado_library_insert()

chado_library_insert (   $node)

Implements hook_insert().

When a new chado_library node is created we also need to add information to our chado_library table. This function is called on insert of a new node of type 'chado_library' and inserts the necessary information.

◆ chado_library_load()

chado_library_load (   $nodes)

Implements hook_load().

When a node is requested by the user this function is called to allow us to add auxiliary data to the node object.

◆ chado_library_update()

chado_library_update (   $node)

Implements hook_update().

◆ chado_library_validate()

chado_library_validate (   $node,
  $form,
$form_state 
)

Implements hook_validate().

Validates submission of form when adding or updating a library node

◆ tripal_library_node_access()

tripal_library_node_access (   $node,
  $op,
  $account 
)

Implement hook_node_access().

This hook allows node modules to limit access to the node types they define.

Parameters
$nodeThe node on which the operation is to be performed, or, if it does not yet exist, the type of node to be created
$opThe operation to be performed
$accountA user object representing the user for whom the operation is to be performed
Returns
If the permission for the specified operation is not set then return FALSE. If the permission is set then return NULL as this allows other modules to disable access. The only exception is when the $op == 'create'. We will always return TRUE if the permission is set.

◆ tripal_library_node_info()

tripal_library_node_info ( )

Implements hook_node_info().

Provide information to drupal about the node types that we're creating in this module

◆ tripal_library_node_insert()

tripal_library_node_insert (   $node)

Implements hook_node_insert(). Acts on all content types.

◆ tripal_library_node_presave()

tripal_library_node_presave (   $node)

Implements hook_node_presave(). Acts on all node content types.

◆ tripal_library_node_update()

tripal_library_node_update (   $node)

Implements hook_node_update(). Acts on all content types.

◆ tripal_library_node_view()

tripal_library_node_view (   $node,
  $view_mode,
  $langcode 
)

Implements hook_node_view(). Acts on all content types