@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * An array containing editor properties as returned from hook_editor(). |
45 | 45 | * |
46 | 46 | * @return |
47 | - * The installed editor version. |
|
47 | + null|string The installed editor version. |
|
48 | 48 | */ |
49 | 49 | function wysiwyg_markitup_version($editor) { |
50 | 50 | // Changelog was in markitup/markitup/readme.txt <= 1.1.5. |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * A wysiwyg editor profile. |
75 | 75 | * |
76 | 76 | * @return |
77 | - * An array of theme names. The first returned name should be the default |
|
77 | + string[] An array of theme names. The first returned name should be the default |
|
78 | 78 | * theme name. |
79 | 79 | */ |
80 | 80 | function wysiwyg_markitup_themes($editor, $profile) { |
@@ -38,7 +38,7 @@ |
||
38 | 38 | * An array containing editor properties as returned from hook_editor(). |
39 | 39 | * |
40 | 40 | * @return |
41 | - * The installed editor version. |
|
41 | + string The installed editor version. |
|
42 | 42 | */ |
43 | 43 | function wysiwyg_nicedit_version($editor) { |
44 | 44 | // @see http://nicedit.com/forums/viewtopic.php?t=425 |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | * An array containing editor properties as returned from hook_editor(). |
42 | 42 | * |
43 | 43 | * @return |
44 | - * The installed editor version. |
|
44 | + null|string The installed editor version. |
|
45 | 45 | */ |
46 | 46 | function wysiwyg_openwysiwyg_version($editor) { |
47 | 47 | // 'library path' has '/scripts' appended already. |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * A wysiwyg editor profile. |
68 | 68 | * |
69 | 69 | * @return |
70 | - * An array of theme names. The first returned name should be the default |
|
70 | + string[] An array of theme names. The first returned name should be the default |
|
71 | 71 | * theme name. |
72 | 72 | */ |
73 | 73 | function wysiwyg_openwysiwyg_themes($editor, $profile) { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * An array containing editor properties as returned from hook_editor(). |
78 | 78 | * |
79 | 79 | * @return |
80 | - * The installed editor version. |
|
80 | + null|string The installed editor version. |
|
81 | 81 | */ |
82 | 82 | function wysiwyg_tinymce_version($editor) { |
83 | 83 | $script = $editor['library path'] . '/tiny_mce.js'; |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * A wysiwyg editor profile. |
105 | 105 | * |
106 | 106 | * @return |
107 | - * An array of theme names. The first returned name should be the default |
|
107 | + string[] An array of theme names. The first returned name should be the default |
|
108 | 108 | * theme name. |
109 | 109 | */ |
110 | 110 | function wysiwyg_tinymce_themes($editor, $profile) { |
@@ -44,7 +44,7 @@ |
||
44 | 44 | * An array containing editor properties as returned from hook_editor(). |
45 | 45 | * |
46 | 46 | * @return |
47 | - * The installed editor version. |
|
47 | + null|string The installed editor version. |
|
48 | 48 | */ |
49 | 49 | function wysiwyg_whizzywig_version($editor) { |
50 | 50 | $script = $editor['library path'] . '/whizzywig.js'; |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * An array containing editor properties as returned from hook_editor(). |
49 | 49 | * |
50 | 50 | * @return |
51 | - * The installed editor version. |
|
51 | + null|string The installed editor version. |
|
52 | 52 | */ |
53 | 53 | function wysiwyg_wymeditor_version($editor) { |
54 | 54 | $script = $editor['library path'] . '/jquery.wymeditor.js'; |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * A wysiwyg editor profile. |
75 | 75 | * |
76 | 76 | * @return |
77 | - * An array of theme names. The first returned name should be the default |
|
77 | + string[] An array of theme names. The first returned name should be the default |
|
78 | 78 | * theme name. |
79 | 79 | */ |
80 | 80 | function wysiwyg_wymeditor_themes($editor, $profile) { |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | * An array containing editor properties as returned from hook_editor(). |
62 | 62 | * |
63 | 63 | * @return |
64 | - * The installed editor version. |
|
64 | + null|string The installed editor version. |
|
65 | 65 | */ |
66 | 66 | function wysiwyg_yui_version($editor) { |
67 | 67 | $library = $editor['library path'] . '/editor/editor.js'; |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | * A wysiwyg editor profile. |
90 | 90 | * |
91 | 91 | * @return |
92 | - * An array of theme names. The first returned name should be the default |
|
92 | + string[] An array of theme names. The first returned name should be the default |
|
93 | 93 | * theme name. |
94 | 94 | */ |
95 | 95 | function wysiwyg_yui_themes($editor, $profile) { |
@@ -674,6 +674,7 @@ discard block |
||
674 | 674 | |
675 | 675 | /** |
676 | 676 | * Remove a profile from the database. |
677 | + * @param stdClass $wysiwyg |
|
677 | 678 | */ |
678 | 679 | function wysiwyg_profile_delete($wysiwyg) { |
679 | 680 | if (!isset($wysiwyg->format)) { |
@@ -922,7 +923,7 @@ discard block |
||
922 | 923 | * Whether to prefix the resulting path with base_path(). |
923 | 924 | * |
924 | 925 | * @return |
925 | - * The path to the specified library. |
|
926 | + string The path to the specified library. |
|
926 | 927 | * |
927 | 928 | * @ingroup libraries |
928 | 929 | */ |
@@ -1014,7 +1015,7 @@ discard block |
||
1014 | 1015 | /** |
1015 | 1016 | * Return a list of directories by modules implementing wysiwyg_include_directory(). |
1016 | 1017 | * |
1017 | - * @param $plugintype |
|
1018 | + * @param string $plugintype |
|
1018 | 1019 | * The type of a plugin; can be 'editors'. |
1019 | 1020 | * |
1020 | 1021 | * @return |
@@ -1039,10 +1040,11 @@ discard block |
||
1039 | 1040 | * |
1040 | 1041 | * @param $module |
1041 | 1042 | * The module that owns the hook. |
1042 | - * @param $identifier |
|
1043 | + * @param string $identifier |
|
1043 | 1044 | * Either the module or 'wysiwyg_' . $file->name |
1044 | - * @param $hook |
|
1045 | + * @param string $hook |
|
1045 | 1046 | * The name of the hook being invoked. |
1047 | + * @param string $path |
|
1046 | 1048 | */ |
1047 | 1049 | function _wysiwyg_process_include($module, $identifier, $path, $hook) { |
1048 | 1050 | $function = $identifier . '_' . $hook; |
@@ -52,6 +52,9 @@ |
||
52 | 52 | } |
53 | 53 | } |
54 | 54 | |
55 | +/** |
|
56 | + * @param string $path |
|
57 | + */ |
|
55 | 58 | function akismet_request($request, $host, $path, $port = 80) { |
56 | 59 | $http_request = "POST $path HTTP/1.0\r\n"; |
57 | 60 | $http_request .= "Host: $host\r\n"; |