You are here

function nodehierarchy_condition_info in Node Hierarchy 5

Same name and namespace in other branches
  1. 6.3 includes/nodehierarchy_workflow_ng.inc \nodehierarchy_condition_info()
  2. 6 nodehierarchy_workflow_ng.inc \nodehierarchy_condition_info()
  3. 6.2 includes/nodehierarchy_workflow_ng.inc \nodehierarchy_condition_info()

Implementation of hook_condition_info().

File

./nodehierarchy_workflow_ng.inc, line 11
Some workflow-ng conditions/actions.

Code

function nodehierarchy_condition_info() {
  return array(
    'nodehierarchy_has_parent' => array(
      '#label' => t('Content has parent'),
      '#arguments' => array(
        'node' => array(
          '#entity' => 'node',
          '#label' => t('Content'),
        ),
      ),
      '#module' => t('Node Hierarchy'),
    ),
  );
}