summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxjm2012-01-25 04:07:56 (GMT)
committer xjm2012-01-25 04:07:56 (GMT)
commit8ef9ae0d3986cd0f07b1061e4b4b33849a77bf02 (patch)
treefe38a46e0197a132a5a3dd9cf7be57839d1caca8
parent267b7f4bb3fca15c844b58188d55166cdeea0f18 (diff)
Issue #1331626 by xjm: Fixed Move _taxonomy_access_grant_help_table() to taxonomy_access().admin.inc.6.x-1.x
-rw-r--r--taxonomy_access.admin.inc56
-rw-r--r--taxonomy_access.module56
2 files changed, 56 insertions, 56 deletions
diff --git a/taxonomy_access.admin.inc b/taxonomy_access.admin.inc
index 8385746..36ab449 100644
--- a/taxonomy_access.admin.inc
+++ b/taxonomy_access.admin.inc
@@ -522,59 +522,3 @@ function _taxonomy_access_admin_instructions_html() {
return $instructions;
}
-
-/**
- * Assemble a table explaining each grant type for use in help documentation.
- *
- * @return
- * Themed table.
- */
-function _taxonomy_access_grant_help_table() {
- $header = array();
-
- $rows = array();
- $rows[] = array(
- array('header' => TRUE, 'data' => t("View")),
- "<p>"
- . t('Grants this role the ability to view nodes with the term. (Users must also have this permission to see <em class="perm">nodes</em> with the term listed in Views.)')
- . "</p>"
- . "<p>"
- . t('The role must <strong>have</strong> <em class="perm">access content</em> permission on the <a href="@path">permissions administration form</a>.',
- array('@path' => url('admin/user/permissions', array('fragment' => 'module-node')))),
- );
-
- $rows[] = array(
- array('header' => TRUE, 'data' => t("Update") . ", " . t("Delete")),
- "<p>"
- . t("Grants this role the ability to edit or delete nodes with the term, respectively.")
- . "</p>"
- . "<p>"
- . t('The role must <strong>not</strong> have <em class="perm">edit any [type] content</em> or <em class="perm">delete any [type] content</em> permission on the <a href="@path">permissions administration form</a> if you wish to control them here.',
- array('@path' => url('admin/user/permissions', array('fragment' => 'module-node'))))
- ."</p>",
- );
-
- $rows[] = array(
- array('header' => TRUE, 'data' => t("Add Tag")),
- "<p>"
- . t("Grants this role the ability to add the term to a node when creating or updating it.")
- . "</p>"
- . "<p>"
- . t('(Formerly <em>Create</em>.) This does <strong>not</strong> give the role the ability to create nodes by itself; the role must <strong>have</strong> <em class="perm">create [type] content</em> permission on the <a href="@path">permissions administration form</a> in order to create new nodes.',
- array('@path' => url('admin/user/permissions', array('fragment' => 'module-node'))))
- ."</p>",
- );
-
- $rows[] = array(
- array('header' => TRUE, 'data' => t("View Tag")),
- "<p>"
- . t("(Formerly <em>List</em>). Whether this role can see the term listed on node pages and in lists, and whether the user can view the %taxonomy-term-page page for the term.",
- array(
- '%taxonomy-term-page' => "taxonomy/term/x"
- ))
- . "</p>"
- . "<p>" . t("This does <strong>not</strong> control whether the role can see the <em>nodes</em> listed in Views, only the <em>term</em>.") . "</p>",
- );
-
- return theme('table', $header, $rows, array('class' => 'grant_help'));
-} \ No newline at end of file
diff --git a/taxonomy_access.module b/taxonomy_access.module
index ad85c14..f7cdff4 100644
--- a/taxonomy_access.module
+++ b/taxonomy_access.module
@@ -1132,3 +1132,59 @@ the authenticated user</a> properly.',
break;
}
}
+
+/**
+ * Assemble a table explaining each grant type for use in help documentation.
+ *
+ * @return
+ * Themed table.
+ */
+function _taxonomy_access_grant_help_table() {
+ $header = array();
+
+ $rows = array();
+ $rows[] = array(
+ array('header' => TRUE, 'data' => t("View")),
+ "<p>"
+ . t('Grants this role the ability to view nodes with the term. (Users must also have this permission to see <em class="perm">nodes</em> with the term listed in Views.)')
+ . "</p>"
+ . "<p>"
+ . t('The role must <strong>have</strong> <em class="perm">access content</em> permission on the <a href="@path">permissions administration form</a>.',
+ array('@path' => url('admin/user/permissions', array('fragment' => 'module-node')))),
+ );
+
+ $rows[] = array(
+ array('header' => TRUE, 'data' => t("Update") . ", " . t("Delete")),
+ "<p>"
+ . t("Grants this role the ability to edit or delete nodes with the term, respectively.")
+ . "</p>"
+ . "<p>"
+ . t('The role must <strong>not</strong> have <em class="perm">edit any [type] content</em> or <em class="perm">delete any [type] content</em> permission on the <a href="@path">permissions administration form</a> if you wish to control them here.',
+ array('@path' => url('admin/user/permissions', array('fragment' => 'module-node'))))
+ ."</p>",
+ );
+
+ $rows[] = array(
+ array('header' => TRUE, 'data' => t("Add Tag")),
+ "<p>"
+ . t("Grants this role the ability to add the term to a node when creating or updating it.")
+ . "</p>"
+ . "<p>"
+ . t('(Formerly <em>Create</em>.) This does <strong>not</strong> give the role the ability to create nodes by itself; the role must <strong>have</strong> <em class="perm">create [type] content</em> permission on the <a href="@path">permissions administration form</a> in order to create new nodes.',
+ array('@path' => url('admin/user/permissions', array('fragment' => 'module-node'))))
+ ."</p>",
+ );
+
+ $rows[] = array(
+ array('header' => TRUE, 'data' => t("View Tag")),
+ "<p>"
+ . t("(Formerly <em>List</em>). Whether this role can see the term listed on node pages and in lists, and whether the user can view the %taxonomy-term-page page for the term.",
+ array(
+ '%taxonomy-term-page' => "taxonomy/term/x"
+ ))
+ . "</p>"
+ . "<p>" . t("This does <strong>not</strong> control whether the role can see the <em>nodes</em> listed in Views, only the <em>term</em>.") . "</p>",
+ );
+
+ return theme('table', $header, $rows, array('class' => 'grant_help'));
+}