You are here

function field_rules_rules_action_info in Field Rules 7

Implementation of hook_rules_action_info().

File

./field_rules.rules.inc, line 24

Code

function field_rules_rules_action_info() {
  $info = array();
  $info['field_rules_create_field'] = array(
    'label' => t('Create a field'),
    'group' => t('Field'),
    'provides' => array(
      'created_field' => array(
        'label' => t('Created field'),
        'type' => 'field',
      ),
    ),
  );
  $info['field_rules_save_field'] = array(
    'label' => t('Save a field'),
    'group' => t('Field'),
    'parameter' => array(
      'field' => array(
        'type' => 'field',
        'label' => t('Field'),
      ),
    ),
  );
  $info['field_rules_load_field'] = array(
    'label' => t('Load a field'),
    'group' => t('Field'),
    'parameter' => array(
      'field_name' => array(
        'type' => 'text',
        'label' => t('Field name'),
      ),
    ),
    'provides' => array(
      'loaded_field' => array(
        'label' => t('Loaded field'),
        'type' => 'field',
      ),
    ),
  );
  $info['field_rules_delete_field'] = array(
    'label' => t('Delete a field'),
    'group' => t('Field'),
    'parameter' => array(
      'field' => array(
        'type' => 'field',
        'label' => t('Field'),
      ),
    ),
  );
  $info['field_rules_create_field_instance'] = array(
    'label' => t('Create a field instance'),
    'group' => t('Field instance'),
    'provides' => array(
      'created_field_instance' => array(
        'label' => t('Created field instance'),
        'type' => 'field_instance',
      ),
    ),
    'parameter' => array(
      'node_type' => array(
        'type' => 'node_type',
        'label' => t('Node type'),
      ),
      'field' => array(
        'type' => 'field',
        'label' => t('Field'),
      ),
    ),
  );
  $info['field_rules_save_field_instance'] = array(
    'label' => t('Save a field instance'),
    'group' => t('Field instance'),
    'parameter' => array(
      'field_instance' => array(
        'type' => 'field_instance',
        'label' => t('Field instance'),
      ),
    ),
  );
  $info['field_rules_load_field_instance'] = array(
    'label' => t('Load a field instance'),
    'group' => t('Field instance'),
    'parameter' => array(
      'node_type' => array(
        'type' => 'node_type',
        'label' => t('Node type'),
      ),
      'field_instance' => array(
        'type' => 'field',
        'label' => t('Field'),
      ),
    ),
    'provides' => array(
      'loaded_field_instance' => array(
        'label' => t('Loaded field instance'),
        'type' => 'field_instance',
      ),
    ),
  );
  $info['field_rules_delete_field_instance'] = array(
    'label' => t('Delete a field instance'),
    'group' => t('Field instance'),
    'parameter' => array(
      'field_instance' => array(
        'type' => 'field_instance',
        'label' => t('Field instance'),
      ),
    ),
  );
  return $info;
}