";
update_post_meta($post['ID'], '_mc_cc_default_com_setting_name_flag', true) . "
";
}
if( isset($attachment['mc_cc_default_mod_setting_name'])){
update_post_meta($post['ID'], '_mc_cc_default_mod_setting_name', $attachment['mc_cc_default_mod_setting_name']);
update_post_meta($post['ID'], '_mc_cc_default_mod_setting_name_flag', true);
}
update_post_meta($post['ID'], '_mc_cc_full_setting_name', $attachment['mc_cc_default_com_setting_name'] . $attachment['mc_cc_default_mod_setting_name']);
return $post;
}
function cc_image_attachment_fields_to_edit($form_fields, $post) {
// $form_fields is a special array of fields to include in the attachment form
// $post is the attachment record in the database
// $post->post_type == 'attachment'
// (attachments are treated as posts in WordPress)
// add our custom field to the $form_fields array
// input type="text" name/id="attachments[$attachment->ID][custom1]"
if (true) {
$form_fields["cc_custom_line"]["label"] = "Creative Commons Tag Options";
$form_fields["cc_custom_line"]["input"] = "html";
$form_fields["cc_custom_line"]["html"] = "