Hello,
I am trying to setup a custom profile (derivated from the standard profile).
The name of my profile/module is : lorem
Unfortunatly, the hook functions in my lorem.install file are not "called".
Herafter, there are 2 examples:

  • xxx_wysiwyg_default_profiles() =>To add wysiwyg profile and default button/plugin to the editor
  • xxx_locale_default_languages() =>To add other language
function lorem_locale_default_languages() {
	$languages = array();

	// Exported language: en.
	$languages['en'] = array(
			'language' => 'en',
			'name' => 'English',
			'native' => 'English',
			'direction' => '0',
			'enabled' => '1',
			'plurals' => '0',
			'formula' => '',
			'domain' => '',
			'prefix' => 'en',
			'weight' => '1',
	);
	// Exported language: fr.
	$languages['fr'] = array(
			'language' => 'fr',
			'name' => 'French',
			'native' => 'Français',
			'direction' => '0',
			'enabled' => '1',
			'plurals' => '0',
			'formula' => '',
			'domain' => '',
			'prefix' => 'fr',
			'weight' => '0',
	);
	// Exported language: nl.
	$languages['nl'] = array(
			'language' => 'nl',
			'name' => 'Dutch',
			'native' => 'Nederlands',
			'direction' => '0',
			'enabled' => '1',
			'plurals' => '0',
			'formula' => '',
			'domain' => '',
			'prefix' => 'nl',
			'weight' => '2',
	);
	variable_set('default_language', $languages['fr']);
	return $languages;
}

function lorem_wysiwyg_default_profiles() {
	$profiles = array();

	// Exported profile: filtered_html
	$profiles['filtered_html'] = array(
			'format' => 'filtered_html',
			'editor' => 'ckeditor',
			'settings' => array(
					'default' => 1,
					'user_choose' => 0,
					'show_toggle' => 1,
					'theme' => 'advanced',
					'language' => 'en',
					'buttons' => array(
							'default' => array(
									'Bold' => 1,
									'Italic' => 1,
									'Underline' => 1,
									'Strike' => 1,
									'JustifyLeft' => 1,
									'JustifyCenter' => 1,
									'JustifyRight' => 1,
									'JustifyBlock' => 1,
									'BidiLtr' => 1,
									'BidiRtl' => 1,
									'BulletedList' => 1,
									'NumberedList' => 1,
									'Outdent' => 1,
									'Indent' => 1,
									'Undo' => 1,
							),
							'imce' => array(
									'imce' => 1,
							),
					),
					'toolbar_loc' => 'top',
					'toolbar_align' => 'left',
					'path_loc' => 'bottom',
					'resizing' => 1,
					'verify_html' => 1,
					'preformatted' => 0,
					'convert_fonts_to_spans' => 1,
					'remove_linebreaks' => 1,
					'apply_source_formatting' => 0,
					'paste_auto_cleanup_on_paste' => 0,
					'block_formats' => 'p,address,pre,h2,h3,h4,h5,h6,div',
					'css_setting' => 'theme',
					'css_path' => '',
					'css_classes' => '',
			),
			'rdf_mapping' => array(),
	);

	// Exported profile: full_html
	$profiles['full_html'] = array(
			'format' => 'full_html',
			'editor' => 'ckeditor',
			'settings' => array(
					'default' => 1,
					'user_choose' => 0,
					'show_toggle' => 1,
					'theme' => 'advanced',
					'language' => 'en',
					'buttons' => array(
							'default' => array(
									'Bold' => 1,
									'Italic' => 1,
									'Underline' => 1,
									'Strike' => 1,
									'JustifyLeft' => 1,
									'JustifyCenter' => 1,
									'JustifyRight' => 1,
									'JustifyBlock' => 1,
									'BulletedList' => 1,
									'NumberedList' => 1,
									'Outdent' => 1,
									'Indent' => 1,
									'Undo' => 1,
									'Redo' => 1,
									'Link' => 1,
									'Unlink' => 1,
									'Anchor' => 1,
									'Image' => 1,
									'TextColor' => 1,
									'BGColor' => 1,
									'Superscript' => 1,
									'Subscript' => 1,
									'Blockquote' => 1,
									'Source' => 1,
									'HorizontalRule' => 1,
									'Cut' => 1,
									'Copy' => 1,
									'Paste' => 1,
									'PasteText' => 1,
									'PasteFromWord' => 1,
									'RemoveFormat' => 1,
									'SpecialChar' => 1,
									'Format' => 1,
									'Font' => 1,
									'FontSize' => 1,
									'Styles' => 1,
									'Table' => 1,
									'SelectAll' => 1,
									'Find' => 1,
									'Replace' => 1,
									'Flash' => 1,
									'Smiley' => 1,
									'CreateDiv' => 1,
									'Iframe' => 1,
									'Maximize' => 1,
									'SpellChecker' => 1,
									'Scayt' => 1,
									'About' => 1,
							),
							'imce' => array(
									'imce' => 1,
							),
							'drupal' => array(
									'break' => 1,
							),
					),
					'toolbar_loc' => 'top',
					'toolbar_align' => 'left',
					'path_loc' => 'bottom',
					'resizing' => 1,
					'verify_html' => 1,
					'preformatted' => 0,
					'convert_fonts_to_spans' => 1,
					'remove_linebreaks' => 1,
					'apply_source_formatting' => 0,
					'paste_auto_cleanup_on_paste' => 0,
					'block_formats' => 'p,address,pre,h2,h3,h4,h5,h6,div',
					'css_setting' => 'theme',
					'css_path' => '',
					'css_classes' => '',
			),
			'rdf_mapping' => array(),
	);

	return $profiles;
}

Is there anybody who have any idea why it is not working? (this code is not producing added languages and no wysiwig profile or ckeditor buttons)

Thanks for your help!!!