function theme_backup_migrate_dependent in Backup and Migrate 6.3
Same name and namespace in other branches
- 8.3 backup_migrate.module \theme_backup_migrate_dependent()
- 7.3 backup_migrate.module \theme_backup_migrate_dependent()
Theme the dependent form section.
File
- ./
backup_migrate.module, line 858 - Create (manually or scheduled) and restore backups of your Drupal MySQL database with an option to exclude table data (e.g. cache_*)
Code
function theme_backup_migrate_dependent($element) {
drupal_add_js(drupal_get_path('module', 'backup_migrate') . '/backup_migrate.js');
drupal_add_css(drupal_get_path('module', 'backup_migrate') . '/backup_migrate.css');
$id = form_clean_id(implode('-', $element['#parents']));
$settings = array(
'backup_migrate' => array(
'dependents' => array(
$id => array(
'dependent' => $id,
'dependencies' => $element['#dependencies'],
),
),
),
);
drupal_add_js($settings, 'setting');
return '<div id="edit-' . $id . '" class="backup-migrate-form-dependent">' . $element['#children'] . '</div>';
}