function brightcove_media_browser_filter_form in Brightcove Video Connect 7.4
Same name and namespace in other branches
- 7.7 brightcove_media/brightcove_media.module \brightcove_media_browser_filter_form()
- 7.2 brightcove_media/brightcove_media.module \brightcove_media_browser_filter_form()
- 7.3 brightcove_media/brightcove_media.module \brightcove_media_browser_filter_form()
- 7.6 brightcove_media/brightcove_media.module \brightcove_media_browser_filter_form()
Filter form for brightcove media video browser.
_state
Parameters
$form:
Return value
array
1 string reference to 'brightcove_media_browser_filter_form'
- MediaBrowserBrightcoveVideo::view in brightcove_media/
includes/ MediaBrowserBrightcoveVideo.inc - Implements MediaBrowserPlugin::view().
File
- brightcove_media/
brightcove_media.module, line 439 - This module provide the hook implementations for the integration with Media module.
Code
function brightcove_media_browser_filter_form($form, &$form_state) {
$form['searchform'] = array(
'#type' => 'fieldset',
'#title' => t('Filter videos'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['searchform']['keywords'] = array(
'#type' => 'textfield',
'#title' => t('Keywords'),
'#size' => 25,
'#default_value' => '',
'#description' => t('Comma separated keywords to search for. (do not add space after comma)'),
);
$form['searchform']['search'] = array(
'#type' => 'radios',
'#title' => t('Search in'),
'#options' => array(
'name' => t('Names and descriptions'),
'tags' => t('Tags: at least one of these'),
'and_tags' => t('Tags: all of these'),
),
'#default_value' => 'name',
'#attributes' => array(
'class' => array(
'search-radio',
),
),
'#description' => t('"Names and descriptions" searches in Video name, short and long descriptions. Tags searches in Video associated tags.'),
);
$form['searchform']['filter'] = array(
'#type' => 'button',
'#name' => 'filter',
'#value' => t('Filter'),
);
$form['searchform']['reset'] = array(
'#type' => 'button',
'#name' => 'reset',
'#value' => t('Reset'),
);
$form['#prefix'] = '<div id="bc-filter-form">';
$form['#suffix'] = '</div>';
$form['submitted-video'] = array(
'#type' => 'hidden',
'#default_value' => FALSE,
);
$form['actions'] = array(
'#type' => 'actions',
);
$form['actions']['submit'] = array(
'#type' => 'submit',
'#submit' => array(
'brightcove_media_browser_form_submit',
),
'#value' => t('Submit'),
);
$form['actions']['cancel'] = array(
'#type' => 'link',
'#title' => t('Cancel'),
'#href' => '',
'#attributes' => array(
'class' => array(
'button',
'button-no',
'fake-cancel',
'brightcove',
),
),
'#weight' => 100,
);
return $form;
}