diff --git a/core/modules/image/image.module b/core/modules/image/image.module index aa05d04..52cde33 100644 --- a/core/modules/image/image.module +++ b/core/modules/image/image.module @@ -614,10 +614,17 @@ function image_style_load($name) { /** * Save an image style. * - * @param style - * An image style array. - * @return - * An image style array. + * @param array $style + * An image style array containing: + * - name: An unique name for the style. + * - effects: An optional array of effects. + * + * @return array + * An image style array containing: + * - name: An unique name for the style. + * - effects: An array of effects. + * - is_new: Is set to TRUE if this is a new style, and FALSE if it is an + * existing style. */ function image_style_save($style) { $config = config('image.style.' . $style['name']); diff --git a/core/modules/node/node.module b/core/modules/node/node.module index 55e346e..dbadd19 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -500,11 +500,30 @@ function node_type_load($name) { /** * Saves a node type to the database. * - * @param $info + * @param object $info * The node type to save, as an object. - * - * @return + * - type: A string. The machine name of the node type. + * - name: A string. The human-readable name of the node type. + * - base: A string that indicates the base string for hook functions. For + * example, 'node_content' is the value used by the UI when creating a new + * node type. + * - description: A string that describes the node type. + * - help: A string. + * - custom: An integer. + * - modified: TRUE or FALSE. + * - locked: An integer. + * - disabled: An integer. + * - is_new: An integer. + * - has_title: TRUE or FALSE. + * - title_label: A string containing the label for the title. + * - module: A string. + * - orig_type: A string. + * - old_type: A string. + * + * @return int * Status flag indicating outcome of the operation. + * A value of 1 indicates SAVED_NEW + * A value of 2 indicates SAVED_UPDATED */ function node_type_save($info) { $existing_type = !empty($info->old_type) ? $info->old_type : $info->type;