You are here

function privatemsg_rules_load_tag_form in Privatemsg 6.2

Define form to load a tag.

1 call to privatemsg_rules_load_tag_form()
privatemsg_rules_thread_has_tag_form in privatemsg_rules/privatemsg_rules.rules.inc
Form definition for thread has tag settings form

File

privatemsg_rules/privatemsg_rules.rules.inc, line 432
Hooks and callback functions for rules.module integration.

Code

function privatemsg_rules_load_tag_form($settings, &$form) {
  $form['settings']['tag'] = array(
    '#type' => 'textfield',
    '#title' => t('Tag name'),
    '#maxlength' => 60,
    '#default_value' => isset($settings['tag']) ? $settings['tag'] : '',
    '#weight' => -1,
    '#description' => t('Name of the tag to be loaded. The tag will be created if he does not exist.'),
  );
  $form['settings']['tagid'] = array(
    '#type' => 'textfield',
    '#title' => t('Tag id'),
    '#default_value' => isset($settings['tagid']) ? $settings['tagid'] : '',
    '#description' => t('Id of the tag to be loaded.'),
  );
}