commerce_backoffice_content.module in Commerce Backoffice 7
File
commerce_backoffice_content.module
View source
<?php
function commerce_backoffice_content_views_api() {
return array(
'api' => 3,
'path' => drupal_get_path('module', 'commerce_backoffice') . '/includes/views',
);
}
function commerce_backoffice_content_form_alter(&$form, &$form_state, $form_id) {
if (isset($form['submit']['#id']) && $form['submit']['#id'] == 'edit-submit-commerce-backoffice-content') {
$form['non_product_display_node_type']['#attributes'] = array(
'data-placeholder' => array(
t('All content types'),
),
);
$form['status']['#options']['All'] = t('All statuses');
$form['combine']['#attributes'] = array(
'placeholder' => array(
t('Search by title or author'),
),
);
}
if (isset($form['submit']['#id']) && $form['submit']['#id'] == 'edit-submit-commerce-backoffice-comments') {
$form['combine']['#attributes'] = array(
'placeholder' => array(
t('Search by subject or author'),
),
);
}
}