function simplenews_issue_handler_settings in Simplenews 7.2
Gets or sets the handler settings for an issue.
Parameters
$node: The issue to get or set the status.
$settings: (Optional) The recipient handler settings to be set or NULL to retrieve the current settings.
Return value
The recipient handler settings or an empty array if not set.
Related topics
3 calls to simplenews_issue_handler_settings()
- simplenews_add_node_to_spool in includes/
simplenews.mail.inc - Add the newsletter node to the mail spool.
- simplenews_node_tab_send_form in includes/
simplenews.admin.inc - @todo
- simplenews_node_tab_send_form_submit in includes/
simplenews.admin.inc - @todo
File
- ./
simplenews.module, line 2787 - Simplenews node handling, sent email, newsletter block and general hooks
Code
function simplenews_issue_handler_settings($node, $settings = NULL) {
$field = variable_get('simplenews_handler_settings_field', 'simplenews_handler_settings');
if ($settings) {
return $node->{$field} = array(
LANGUAGE_NONE => array(
array(
'value' => serialize($settings),
),
),
);
}
elseif ($settings = field_get_items('node', $node, $field)) {
return unserialize($settings[0]['value']);
}
return FALSE;
}